Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def click_and_trip(self, time_for):
- element_data_from = WebDriverWait(self.driver, 100).until(
- lambda driver: driver.find_element(By.XPATH, '//div[contains(text(),"{}")]/ancestor::*[contains(@class, "desktop_option_2Mm desktop_option_short_27x")]'.format(time_for)))
- self.driver.execute_script("arguments[0].click();", element_data_from);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement