Skip to content

How do you delay a save_screeshot, or making it exact on a certain page? #2618

Closed Answered by mdmintz
Uno-count asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you haven't modified the default pageLoadStrategy for SeleniumBase, methods will wait for the readyState of the web page to be complete before performing actions, such as saving a screenshot with self.save_screenshot("NAME.png").

You can also wait for a specific element to appear first by using self.wait_for_element(selector).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
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