javascript - With Webdriver, how do I click a button that has a data-bind 'mousedown' event? -


i using webdriverio , webdrivercss create visual regression test suite.

the page testing has form submit button, however, when send try click on button, form not submitted.

the html button below

<div class="submit_jump_patch" data-bind="event: {'mousedown': $root.formsubmithandler }">     <input type="submit" name="journey_save" value="next" id="journey_save" class="btn btn_primary btn_large float_right full_width_m" data-bind="css : { 'spinner' : showspinner, 'disabled' : disablesubmit }, attr: { 'aria-busy' : showspinner() ? 'true' : 'false' }" aria-busy="false"> </div> 

i have tried following webdriverio commands: .click .movetoobject.click() .execute (

unfortunately unable change html doesn't require 'mousedown' event, , unsure why there in first place.

try using selectorexecute

browser.selectorexecute(".submit_jump_patch", function (submitdiv) {             submitdiv[0].mousedown();         }); 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -