Skip to content
I need help getting my code to type to a new tab
Profile icon

I am trying to make it open in a new tab but it will not type into the new tab and only the first tab. Can you guys help me?
Also, it is giving me this error:

Traceback (most recent call last): File "", line 28, in <module> driver.switch_to_window(driver.window_handles[1]) AttributeError: 'Browser' object has no attribute 'switch_to_window' exit status 1
You are viewing a single comment. View All
Answered by ArjunSS1 [earned 5 cycles]
View Answer
Profile icon

Have you attempted making a .py file on your desktop and running it from there? Since isn't a hardwired operating system for your machine, there is a possibility that the work-space can't access your browser, as it is not the primary OS for your system. So try making a .py file with the same contents as here and run it.

Profile icon

I cant its a school computer (plus I don't know how)
Edit: its a chromebook