Skip to content

Element not found on a while #1563

Answered by mdmintz
KolyStudio asked this question in Q&A
Oct 23, 2022 · 1 comments · 5 replies

You must be logged in to vote

You might want to use self.type() instead of self.send_keys(), because self.send_keys() won't clear out the text field first if there's text already in it. Also, it's difficult to see what your script is trying to do because you're using long selectors that might not be very stable.

You can probably optimize most of your selectors if you run the following on your script:

pytest --rec-print

Replies: 1 comment 5 replies

You must be logged in to vote
5 replies
@mdmintz

@KolyStudio

@mdmintz

@KolyStudio

@mdmintz

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants