We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a36a5f commit c03d8eeCopy full SHA for c03d8ee
seleniumbase/fixtures/base_case.py
@@ -1138,8 +1138,11 @@ def get_locale_code(self):
1138
1139
def go_back(self):
1140
self.__check_scope()
1141
+ pre_action_url = self.driver.current_url
1142
self.__last_page_load_url = None
1143
self.driver.back()
1144
+ if pre_action_url == self.driver.current_url:
1145
+ self.driver.back() # Again because the page was redirected
1146
if self.recorder_mode:
1147
time_stamp = self.execute_script("return Date.now();")
1148
origin = self.get_origin()
0 commit comments