def click_button_with_hold(self, btn, delay_in_ms=300): webdriver.ActionChains(self.driver).click_and_hold(btn) sleep(delay_in_ms / 1000) webdriver.Actio