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

[Question]How to judge whether an element visble or not? #4854

Closed
dld8888 opened this issue Dec 30, 2020 · 2 comments
Closed

[Question]How to judge whether an element visble or not? #4854

dld8888 opened this issue Dec 30, 2020 · 2 comments

Comments

@dld8888
Copy link

dld8888 commented Dec 30, 2020

pgge.querySelector('tbody>tr:nth-child(2)>input')
If it is not found, an error occurs, causing the script to break

Something like that:How can I tell if a selection box has been selected?
thank you

@pavelfeldman
Copy link
Member

It is unclear what you are asking. Could you provide a snippet of the code and more context?

@pavelfeldman
Copy link
Member

https://playwright.dev/docs/actionability/#assertions - I hope this is what you are looking for. Please feel free to open new issues with additional details!

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

No branches or pull requests

2 participants