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) 
  • After entering data in the additional window, do I need to go to the site root (/ index)? - gil9red
  • I, after logging in, added a link to another page of the site, it worked, but then the button, which you need to click on passing the test, does not click unfortunately. Traceback (most recent call last): .... line 13, in <module> wd.find_element_by_class_name ("jss256"). Click () - SvetlanaI
  • one
    With this question, I do not think I can help. But you can help other participants. There is a question to править 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

0