def click_promoted_badge()

in pages/desktop/frontend/details.py [0:0]


    def click_promoted_badge(self):
        # clicks on the promoted badge and waits for the sumo page to load
        self.promoted_badge.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"))
        )