Допил

This commit is contained in:
Oleja123 2025-03-03 20:48:09 +04:00
parent d102c7f491
commit 39f22dd501

View File

@ -10,10 +10,10 @@ def switcher(driver, ind):
By.XPATH, f"/html/body/div[2]/nav/a[{ind}]")
to_check1 = element.text
element.click()
time.sleep(2)
to_check2 = driver.find_element(
By.CLASS_NAME, 'overlay-header__info-text').get_attribute("textContent")
res = (to_check1 == to_check2)
time.sleep(2)
driver.find_element(
By.CSS_SELECTOR, '#root > div > div.app-page > div.auth-popup > div > div.overlay-order.overlay-sidebar-enter-done > div.overlay-header > button.popup-close-icon > svg > path').click()
time.sleep(2)
@ -33,8 +33,10 @@ def test_navigation(login):
profile_icon_window = login.find_element(
By.XPATH, "//*[@id='root']/div/div[1]/div[1]/div[1]/button[1]/img")
profile_icon_window.click()
time.sleep(2)
menu_len = len(login.find_elements(By.CLASS_NAME, 'account-menu__item'))
profile_icon_window.click()
time.sleep(2)
res = True
for ind in range(menu_len - 1):