vendredi 13 novembre 2015

Button not getting clicked in nightwatchjs

I am trying some tests with nightwatchjs and trying to click button and then asserting a text. for eg

client .clickEl('[data-tab="js-tab-ship"]') .assert.elContainsText('.js-tab-ship', 'This item is not available for shipping.');

sometimes the button is getting clicked while sometimes it is not clicking the button though it says Selector <[data-tab="js-tab-ship"]> clicked after 1040 milliseconds ✖ Selector '.js-tab-ship' was not visible after 60086 milliseconds. - expected "visible" but got: not visible but when I cannot see it getting clicked when I am running the test. I tried putting a pause before the click but same thing is happening sometimes its getting clicked sometimes not.

Aucun commentaire:

Enregistrer un commentaire