|
Hi there, Ive made some code that loads up a website and puts some random words into a text area. It works perfectly fine when loading the website with open(url) etc. However, when I open a new window, and switch to that window and then open the same url using the exact same code, the text area isnt found. Doesnt matter if I add driver.sleep, increase the timeout etc. I dont understand how it works perfectly fine but then when using it in a new window it doesnt. Anyone encountered the same issue? |
Answered by
mdmintz
Nov 14, 2023
Replies: 1 comment 1 reply
|
Hello. Not sure what you're doing, (since you haven't provided any code to work with), but you should try this example test that works with multiple windows/tabs, and switching between them: SeleniumBase/examples/test_window_switching.py |
1 reply
Answer selected by
mdmintz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. Not sure what you're doing, (since you haven't provided any code to work with), but you should try this example test that works with multiple windows/tabs, and switching between them: SeleniumBase/examples/test_window_switching.py