You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
waitForText raises "Cannot read property 'then' of undefined" #11
Activity
adrianblynch commentedon Dec 7, 2015
Re
waitForVisible: Not a fix, but an answer as to why it's happening. Remove the.fromThis is me.- Does it start working for you?lib/helper/WebDriverIO.js:withStrictLocator()passes text straight through and my guess is that any special characters cause issues.You might get around it by modifying the text you search for. No ideal but hey...
antonioribeiro commentedon Dec 7, 2015
@adrianblynch, it doesn't seems to be that, tried a different string, without special characters
adrianblynch commentedon Dec 7, 2015
What about the spaces? I thought I tried a string with spaces but maybe it was just the
..antonioribeiro commentedon Dec 7, 2015
Nope. Not even with a single spaceless word.
adrianblynch commentedon Dec 7, 2015
Strange.
If you switch to
I.see("This is me."), what happens?antonioribeiro commentedon Dec 7, 2015
Green.
roadhump commentedon Dec 9, 2015
It looks like missing return in waitForText function here https://github.com/Codeception/CodeceptJS/blob/master/lib%2Fhelper%2FWebDriverIO.js#L502
Merge pull request #22 from roadhump/issue-11-waitfortext
DavertMik commentedon Dec 14, 2015
Thanks for investigation and fix