WebPagetest Forums

Full Version: Click event not triggered on checkbox
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

Can some one provide inputs on below script, i was not able to select the checkbox through script.

logData 0
navigate http://www.walmart.com/search/?query=tod...s&cat_id=0
logData 1
setEventName scrollDown
execAndWait window.scrollBy(0,1000)
clickAndWait document.querySelector('input[type=checkbox]')[0].click()

script was working only till scroll.

Below is the test run

could you try dispatching a custom event from the checkbox, like
document.querySelector('input[type=checkbox]')[0].dispatchEvent(new InputEvent("input"))
Reference URL's