Код: Выделить всё
You have multiple roles. You can only access this link as Student. Do you want to proceed?
Я использую webdriver.Remote(). Я пробовал:
Код: Выделить всё
element = driver.find_element(By.XPATH, "//input[@id='continue-button']")
element.click ()
Код: Выделить всё
modal = driver.find_element(By.XPATH, "//div[@id='content-overlay']")
element = modal.find_element(By.XPATH, "//input[@id='continue-button']")
element.click ()
Что я делаю не так? Я использую Python 3.11 и Selenium 4.39.0.
Подробнее здесь: https://stackoverflow.com/questions/798 ... in-a-modal
Мобильная версия