File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,11 @@ def open(self, url):
139
139
""" Navigates the current browser window to the specified page. """
140
140
self .__check_scope ()
141
141
self .__check_browser ()
142
+ pre_action_url = None
143
+ try :
144
+ pre_action_url = self .driver .current_url
145
+ except Exception :
146
+ pass
142
147
if type (url ) is str :
143
148
url = url .strip () # Remove leading and trailing whitespace
144
149
if (type (url ) is not str ) or not self .__looks_like_a_page_url (url ):
@@ -170,6 +175,11 @@ def open(self, url):
170
175
self .driver .get (url )
171
176
else :
172
177
raise Exception (e .msg )
178
+ if (
179
+ self .driver .current_url == pre_action_url
180
+ and pre_action_url != url
181
+ ):
182
+ time .sleep (0.1 ) # Make sure load happens
173
183
if settings .WAIT_FOR_RSC_ON_PAGE_LOADS :
174
184
self .wait_for_ready_state_complete ()
175
185
self .__demo_mode_pause_if_active ()
You can’t perform that action at this time.
0 commit comments