Skip to content

question about wait() #169

Answered by ElSnoMan
AsafDin asked this question in Q&A
Discussion options

You must be logged in to vote

Provide the error that is being raised. The more information you provide, the easier it is to debug and provide guidance.

From looking at the provided code, line 3 isn't going to work since localName=button is not valid CSS. It looks like it's commented out, but it's hard to tell since it's not formatted.

Pylenium waits for a lot of things automatically, so you probably don't need to wait for the title of the page and just interact with the element you care about. That's my first bit of advice.

But, if you do care about the title, then use a .should() expectation which does a wait as well

py.should().contain_title('בית')

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ElSnoMan
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
Converted from issue

This discussion was converted from issue #164 on April 11, 2021 07:31.