1

We have a selenium IDE script we're converting to python webdriver. The following command did not convert:

[openWindow | http://mywebsite.com/index.php | window1]]

I've searched for the equivalent webdriver command for openWindow, but I haven't found anything. Can someone tell me what the best way is to deal with this command in webdriver?

1 Answer 1

1

I am afraid there is no direct alternative in the webdriver API, no way to work with browser tabs reliably (except switching between open tabs through switch_to.window()). Even to open a tab, keyboard shortcuts is the only way, see:

Just instantiate a new driver if you need to open a "new window" and use driver.get() to navigate to a URL.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks again alecxe. I just instantiated a new driver.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.