I write tests on Selenium + Python.
Please help with the problem:
There is a site that has an additional window when logging in.
But after the authorization, will not return to the main window of the site.
What to do to pass the test after authorization?
pwd = "логин:пароль" url = 'http://' + pwd + 'всплывающее окно авторизации' wd: WebDriver = WebDriver() response = wd.get(url) wd.get("http://ссылка")# эту ссылку добавила позже, и по ней перешел на другую страницу wd.find_element_by_class_name("jss256").click() # но здесь не находит кнопку print(response)
правитьbutton, add your code through it. There is no code, so you can only guess, but after a click, is there any waiting for an element to click? I wrote about expectations here: ru.stackoverflow.com/a/836240/201445 - gil9red