From 19349702b92cc6070e37981f16a474594b8c832d Mon Sep 17 00:00:00 2001 From: Barbara Miller Date: Fri, 8 Dec 2017 13:42:54 -0800 Subject: [PATCH] simple multi-selector test with window.scroll --- brozzler/behaviors.yaml | 1 + brozzler/js-templates/umbraBehavior.js.j2 | 1 + 2 files changed, 2 insertions(+) diff --git a/brozzler/behaviors.yaml b/brozzler/behaviors.yaml index 898b0b8..d63b25e 100644 --- a/brozzler/behaviors.yaml +++ b/brozzler/behaviors.yaml @@ -70,6 +70,7 @@ default_parameters: actions: - selector: a#get_more + - selector: a#get_more - # acalog https://webarchive.jira.com/browse/ARI-3775 url_regex: '^https?://.*[?&]catoid=[^?]*$' behavior_js_template: simpleclicks.js.j2 diff --git a/brozzler/js-templates/umbraBehavior.js.j2 b/brozzler/js-templates/umbraBehavior.js.j2 index 0cece1c..6ff51ef 100644 --- a/brozzler/js-templates/umbraBehavior.js.j2 +++ b/brozzler/js-templates/umbraBehavior.js.j2 @@ -101,6 +101,7 @@ class UmbraBehavior { console.log("ready for next action"); // untested! this.index += 1; this.idleSince = null; + window.scroll(0,0); } } }