Skip to content
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

ability to assert that an element is visible/not visible on the page #20

Closed
amirrajan opened this issue Apr 27, 2012 · 5 comments
Closed

Comments

@amirrajan
Copy link
Collaborator

Need some way to assert that an element exists on that page, or doesn't exist. It should poll for the existence of the element (like write does).

Maybe something along the lines of:

isThere "#requestedGames div"

and

isNotThere "#requestGames div"

@lefthandedgoat
Copy link
Owner

exists "#id"
notexists "#id"

that work?

@amirrajan
Copy link
Collaborator Author

exists, notExists asserts on whether the element actually is in the DOM, visible notVisible would assert that the element is hidden (or not in the DOM)...and yes...you'll have to traverse up the element hierarchy to verify if any parents are hidden or if their opacity is 0

@lefthandedgoat
Copy link
Owner

decided on exists and notExists to see if it exists from the user's perspective

domExists and domNotExists would check dom, thats the new naming convention for any method that needs to be dom aware

@amirrajan
Copy link
Collaborator Author

is this a duplicate for displayed notDisplayed?

@lefthandedgoat
Copy link
Owner

your original request is a duplicate, but we also talked about seeing if something exists, in the dom etc. Let me know if you still want that feature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants