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 }}
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
Do nightwatch-extra mobile commands for native apps work out of the box when using the Nightwatch page object implementation?
Under the hood, Nightwatch (latest release) switches between xpath, css selector or recursion modes when interpreting page object command methods. However, if I need to to use accessibility id or name locator strategies, for example, there are no global methods (in the same vein as useXpath or useCss) available to do so.
Currently, I'm seeing the following error when triggering a page object command using a mobile custom command:
Error processing the server response:
Parameters were incorrect. We wanted {"required":["using","value"]} and you sent ["using"]
INFO Response 400 POST /wd/hub/session/5409ec9d-3d45-477c-b241-869020a880fb/element (4ms) { value: -1, error: 'Unexpected token P in JSON at position 0' }
INFO Request: POST /wd/hub/session/5409ec9d-3d45-477c-b241-869020a880fb/element
- data: {"using":"LOG IN"}
- headers: {"Content-Type":"application/json; charset=utf-8","Content-Length":18}
[HTTP] --> POST /wd/hub/session/5409ec9d-3d45-477c-b241-869020a880fb/element
[HTTP] {"using":"LOG IN"}
[debug] [MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {"required":["using","value"]} and you sent ["using"]
[HTTP] <-- POST /wd/hub/session/5409ec9d-3d45-477c-b241-869020a880fb/element 400 1 ms - 90
[HTTP]
Do
nightwatch-extra
mobile commands for native apps work out of the box when using the Nightwatch page object implementation?Under the hood,
Nightwatch
(latest release) switches between xpath, css selector or recursion modes when interpreting page object command methods. However, if I need to to useaccessibility id
orname
locator strategies, for example, there are no global methods (in the same vein asuseXpath
oruseCss
) available to do so.Currently, I'm seeing the following error when triggering a page object command using a mobile custom command:
PageObject File looks like the following:
The text was updated successfully, but these errors were encountered: