-
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? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
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