nightwatch-custom-commands-assertions icon indicating copy to clipboard operation
nightwatch-custom-commands-assertions copied to clipboard

waitForText doesn't work with locateStrategy property of selector inside of Page Object

Open Pashokus opened this issue 10 years ago • 4 comments

Pashokus avatar Dec 08 '15 08:12 Pashokus

Which locateStrategy did you use?

maxgalbu avatar Dec 09 '15 13:12 maxgalbu

I use pageObject element with locateStrategy: 'xpath'

Pashokus avatar Dec 09 '15 14:12 Pashokus

Ok, I'll test it

maxgalbu avatar Dec 15 '15 15:12 maxgalbu

I did some tests and it does not even work with css. I've opened an issue in nightwatch: https://github.com/nightwatchjs/nightwatch/issues/787

EDIT: the new 1.0.5 version along with this pull request to nightwatch will fix it: https://github.com/nightwatchjs/nightwatch/pull/796 (if you want to install this version momentarily, use npm install -g git://github.com:maxgalbu/nightwatch#maxgalbu-patch-1)

maxgalbu avatar Dec 21 '15 00:12 maxgalbu