如何附加已经打开的chrome实例的webdriver? [英] How to attached webdriver with already opened chrome instance?
本文介绍了如何附加已经打开的chrome实例的webdriver?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们正在使用最新版本的WebDriver C#,我们正在努力将webdriver连接到已经打开的Chrome浏览器实例。
我希望我能得到正确和正确的答案。
谢谢,
Devang
我尝试了什么:
我试过
Hi,
We are using the latest version of WebDriver C# and we are struggling to attached webdriver to already opened Chrome Browser instance.
I hope here I can get correct and proper answer.
Thanks,
Devang
What I have tried:
I have tried with
RemoteWebDriver
推荐答案
这是什么意思
we are struggling to attached
webdriver ?
i希望你在寻找
webdriver ?
i hope you are looking for
driver = new ChromeDriver(@"D:\Drivers\Chrome_Driver");
driver.Navigate().GoToUrl("http://somepahe.com");
driver.Manage().Window.Maximize();
我需要访问或获取已打开的chrome浏览器实例中的元素,但我们没有这样做。
I need to access or get the element from already opened chrome browser instance but we failed to do the same.
这篇关于如何附加已经打开的chrome实例的webdriver?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文