selenium webdriver - Nightwatch.js click not reflected in UI -


i trying click element in nightwatch:

client     .waitforelementvisible('.tt-suggestions div:nth-child(4)', 2000)        .click('.tt-suggestions div:nth-child(4)', function(clickstatus) {         console.log(clickstatus);     }); 

i check clickstatus, , returns 'success' click being fired on element. however, not reflect in ui. suggestions?

i have found need add pause in order click performed in browser. therefore try in test:

client .waitforelementvisible('.tt-suggestions div:nth-child(4)', 2000) .pause(1000)    .click('.tt-suggestions div:nth-child(4)', function(clickstatus) {     console.log(clickstatus); }); 

Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -