开发者

Get current opened browser window in selenium 2 (WebDriver)

开发者 https://www.devze.com 2023-04-03 01:24 出处:网络
I am using selenium 2 (WebDriver) now and I would like to get the control of current opened browse开发者_高级运维r window instead of open a new one. That means I can\'t use driver.get(\"url\") which i

I am using selenium 2 (WebDriver) now and I would like to get the control of current opened browse开发者_高级运维r window instead of open a new one. That means I can't use driver.get("url") which is showed in all online documents. Could anyone help?

FYI, I am using Python binding of selenium and firefox. Thanks.


Unfortunately you can't connect to an open browser at the moment. There is an open bug for WebDriver to support that

0

精彩评论

暂无评论...
验证码 换一张
取 消