Untitled
unknown
python
a year ago
1.1 kB
2
Indexable
Never
def select_date(driver: webdriver): waitByMethods.wait_invisibility_by_class_name(driver, 'sk-ball-spin-clockwise') # target_continue_xpath = '//button[contains(span, "Продолжить")]' # click_on_the_button_by_xapth(driver, target_continue_xpath) target_date_xpath = '//td[contains(@class, "date-availiable")]' waitByMethods.wait_clickable_by_xpath(driver, target_date_xpath) # driver.find_element(By.XPATH, target_date_xpath).click() element = driver.find_element(By.XPATH, target_date_xpath) driver.execute_script( "arguments[0].click();", element ) target_xpath_select_time = '//button[contains(@span, "Все")]' waitByMethods.wait_visibility_by_xpath(driver, target_xpath_select_time) target_xpath_select_time_slot = '//input[contains(@id, "STRadio")]' waitByMethods.wait_visibility_by_xpath(driver, target_xpath_select_time_slot) driver.find_element(By.XPATH, target_xpath_select_time_slot).click() target_continue_xpath = '//button[contains(span, "Продолжить")]' click_on_the_button_by_xapth(driver, target_continue_xpath)