-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Wrong XPath/CSS Selector Type #142
Comments
If I change the first command to be consistently css, then the second command tries to execute as css
|
this should have been fixed in e64e03b but it's not currently released in npm, it's going to be there soon. |
I updated to latest, however I think what I'm seeing is a timing issue with custom commands and the main test thread. I've added the following line to the top of index.js where the useCss() and useXpath() functions are
This is the output I'm getting
I'm seeing the useCss in SessionEditTest.js (the main test) get applied before the waitForElement is getting executed in createNewApp.js (the custom command) |
should work now. |
When using .useXpath() and .useCss() I'm seeing the incorrect locator strategy used (or at least not what I'm expecting)
I'm seeing various errors depending on what order I run these in. The first two are in a custom command and the last is in the main test. Right now, it's trying to use the "testid='refresh'" as an XPath locator.
The text was updated successfully, but these errors were encountered: