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

https://www.webpagetest.org/result/170602_PF_37B/
could you try dispatching a custom event from the checkbox, like
document.querySelector('input[type=checkbox]')[0].dispatchEvent(new InputEvent("input"))
Reference URL's