-2

I am pressing Continue to this website (not recommended) and window changes URL where I have to input password. The window is opened, but webdriver do not see it "Unable to get browser" How to make webdriver to "see" it and use it?

user3100685
  • 1
  • 1
  • 1

2 Answers2

0

You have to switch the driver to new opened window. Example code in java:

for(String winHandle : driver.getWindowHandles()){
    driver.switchTo().window(winHandle);
}

My answer is based on this thread:

https://stackoverflow.com/a/9597714/4855333

Community
  • 1
  • 1
kotoj
  • 769
  • 1
  • 6
  • 25
0

if the driver did not open the window it can't "see it".

Hezi Israeli
  • 389
  • 1
  • 2
  • 14