Skip to content

Commit 2b672f9

Browse files
committed
Update ad-block timing for possible delayed iframes
1 parent c5d4488 commit 2b672f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

seleniumbase/fixtures/base_case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,9 +2122,9 @@ def wait_for_ready_state_complete(self, timeout=None):
21222122
if not current_url == self.__last_page_load_url:
21232123
time.sleep(0.02)
21242124
self.ad_block()
2125-
time.sleep(0.01)
2125+
time.sleep(0.02)
21262126
if self.is_element_present("iframe"):
2127-
time.sleep(0.07) # iframe ads take slightly longer to load
2127+
time.sleep(0.1) # iframe ads take slightly longer to load
21282128
self.ad_block() # Do ad_block on slower-loading iframes
21292129
self.__last_page_load_url = current_url
21302130
return is_ready

0 commit comments

Comments
 (0)