1

Using python selenium, I did: driver.get(base_url) and it enter image description here

The only problem is: it went into the tab in the background(attached picture no.2), how do click on that tab which will it to the front?

PChao
  • 417
  • 2
  • 5
  • 17
  • Please take a look at this [Thread](https://stackoverflow.com/questions/53690243/selenium-switch-tabs). This will solve your problem. – Swaroop Humane Jul 06 '21 at 23:13

1 Answers1

1

I think that's an windows handles issue.

you can have your web driver focus on second tab with the below code :

driver.switch_to.window(driver.window_handles[1])
cruisepandey
  • 28,520
  • 6
  • 20
  • 38