-
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
element() ignores use_xpath #3033
Comments
how about if you do:
you can also use the element(by.xpath('//body')) |
Thanks @beatfactor! Both work fine, and have actually been employed to circumvent this bug. However, for a clean suite it's nice to be able to have options where one can provide only one selector string to adhere to the global default. |
I agree, I was just making sure that there are workarounds until we fix the issue. |
Same issue is with elements() too |
… set in config
Describe the bug
Using the new global
element()
will default tocss_selector
as locate strategy, even ifuse_xpath
is set to true in configuration.With for example:
It outputs:
Configuration
nightwatch.conf.js
Your Environment
nightwatch --version
The text was updated successfully, but these errors were encountered: