in pages/desktop/frontend/details.py [0:0]
def click_install_warning_button(self):
# clicks on the install warning and waits for the sumo page to load
self.wait_for_element_to_be_clickable(self._install_warning_button_locator)
self.find_element(*self._install_warning_button_locator).click()
self.wait.until(expected.number_of_windows_to_be(2))
new_tab = self.driver.window_handles[1]
self.driver.switch_to.window(new_tab)
self.wait.until(
expected.visibility_of_element_located((By.CLASS_NAME, "sumo-page-heading"))
)