Csharp/C#教程:无法与最新版本的Selenium 3.12在Chrome浏览器(版本67.0.3396.87)中与WebElements交互分享


无法与最新版本的Selenium 3.12在Chrome浏览器(版本67.0.3396.87)中与WebElements交互

我正在尝试登录网页并希望传递userId和密码。它没有传递用户ID /密码而页面被停止。获取以下exception –

“{对远程WebDriver服务器的URL请求http:// localhost:6905 / session / 4e1158e787cbb6d6a16e5352a290cc89 / element / 0.5806346454853202-1 / 60秒后单击超时。”}“使用chromedriver版本2.40.0,Chrome浏览器版本是67.0.3396.87和Selenium webdriver版本是3.12

还注意到与IE11相同的问题。 请提供有关此的任何帮助/建议。

IWebDriver IeDriver; ChromeOptions options = new ChromeOptions(); options.AddArgument("disable-infobars"); options.AddAdditionalCapability("useAutomationExtension", false); options.AddArgument("no-sandbox"); IeDriver = new ChromeDriver(options); IeDriver.Navigate().GoToUrl("https://in.linkedin.com/"); Thread.Sleep(5000); IeDriver.FindElement(By.Id("login-email")).Click(); 

从Click()方法抛出exception。 “{对URL远程WebDriver服务器的URL请求http:// localhost:6905 / session / 4e1158e787cbb6d6a16e5352a290cc89 / element / 0.5806346454853202-1 / 60秒后单击超时。”}“

StackTrace:OpenQA.Selenium.WebDriverException HResult = 0x80131500 Message =对远程WebDriver服务器的URL请求http:// localhost:6109 / session / 8d807d90c1f7f6d35b8ac3bbf9bf91c1 / element / 0.6394445294841895-2 / 60秒后单击超时。 Source = WebDriver StackTrace:OpenQA上的OpenQA.Selenium.Remium.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)中的OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo),以及OpenQA上的OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(命令commandToExecute)。 Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute,Dictionary 2 parameters) at OpenQA.Selenium.Remote.RemoteWebElement.Execute(String commandToExecute, Dictionary 2参数)。 C: Users arunangshuj884 source repos TestSelenium TestSelenium Program.cs中的Main(String [] args):第76行

内部exception1:WebException:请求已中止:操作已超时。

上述就是C#学习教程:无法与最新版本的Selenium 3.12在Chrome浏览器(版本67.0.3396.87)中与WebElements交互分享的全部内容,如果对大家有所用处且需要了解更多关于C#学习教程,希望大家多多关注—计算机技术网(www.ctvol.com)!

本文来自网络收集,不代表计算机技术网立场,如涉及侵权请联系管理员删除。

ctvol管理联系方式QQ:251552304

本文章地址:https://www.ctvol.com/cdevelopment/988352.html

(0)
上一篇 2021年12月23日
下一篇 2021年12月23日

精彩推荐