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
// error when running tests
Error: No selector property for element "image" Instead found properties: selector,parent,name
at Array.forEach (native)
at Array.forEach (native)
at Array.forEach (native)
This error happens no matter what test is run if, inside a PageObject, I do the following:
Putting some text inside the image value solves the problem!
The text was updated successfully, but these errors were encountered:
GrayedFox
changed the title
Bug: empty strings cause runtime error for pageobject elements
Bug: empty strings inside shared pageobject elements cause runtime error
Feb 15, 2017
No need (in my case) for an empty string - although maybe someone else would use an empty string as a placeholder.
I just wanted to point out the runtime error - since the output was confusing ("no selector property... instead found properties selector, parent, name".
I guess updating the function that checks the selector should have some safety/defensiveness against empty strings 😸
This issue has been automatically marked as stale because it has not had any recent activity.
If possible, please retry using the latest Nightwatch version and update the issue with any relevant details. If no further activity occurs, it will be closed. Thank you for your contribution.
The error:
This error happens no matter what test is run if, inside a PageObject, I do the following:
Putting some text inside the
image
value solves the problem!The text was updated successfully, but these errors were encountered: