问题标签 [iedriverserver]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
36 浏览

java - 仅在关闭现有窗口后打开新窗口时将控件切换到新窗口

如果仅在关闭现有窗口后打开新窗口,如何将控制切换到新窗口?

我正在使用 Selenium 和 Internet Explorer。

0 投票
1 回答
2254 浏览

c# - 升级到 3.9 版后无法启动 Selenium IE 驱动程序

此处更新到 64 位的 IEDriverServer 3.9 后,尝试使用 IE(版本:11.0.9600.17842,Win8.1)运行任何测试时出现以下异常。有谁知道如何解决这个问题,还是我应该降级回 3.8?

OpenQA.Selenium.WebDriverException:向远程 WebDriver 服务器发送 HTTP 请求以获取 URL http://localhost:53379/session时抛出了一个具有空响应的异常。

异常状态为 ReceiveFailure,消息为:底层连接已关闭:接收时发生意外错误。---->

System.Net.WebException:底层连接已关闭:接收时发生意外错误。----> System.IO.IOException : Unable to read data from the transport connection: 一个现有的连接被远程主机强行关闭。----> System.Net.Sockets.SocketException:现有连接被远程主机强行关闭 TearDown:System.NullReferenceException:对象引用未设置为对象的实例。

堆栈跟踪如下:

结果 StackTrace:OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) 在 OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute) 在 OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute) 在 OpenQA.Selenium。 Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 参数) 在 OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities) 在 OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) 在 OpenQA.Selenium .IE.InternetExplorerDriver..ctor(InternetExplorerDriverService 服务,InternetExplorerOptions 选项)在 OpenQA.Selenium.IE.InternetExplorerDriver..ctor() --WebException 在 System.Net。HttpWebRequest.GetResponse() 在 OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo) --IOException 在 System.Net.Sockets.NetworkStream.Read(Byte[] 缓冲区,Int32 偏移量,Int32 大小) 在 System.Net.PooledStream .Read(Byte[] buffer, Int32 offset, Int32 size) at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) --SocketException at System.Net.Sockets.Socket.Receive(Byte[] buffer , Int32 偏移量, Int32 大小, SocketFlags socketFlags) 在 System.Net.Sockets.NetworkStream.Read(Byte[] 缓冲区, Int32 偏移量, Int32 大小)Int32 大小)在 System.Net.PooledStream.Read(字节 [] 缓冲区,Int32 偏移量,Int32 大小)在 System.Net.Connection.SyncRead(HttpWebRequest 请求,布尔 userRetrievedStream,布尔 probeRead)--System.Net.Sockets 处的SocketException .Socket.Receive(Byte[] 缓冲区,Int32 偏移量,Int32 大小,SocketFlags socketFlags) 在 System.Net.Sockets.NetworkStream.Read(Byte[] 缓冲区,Int32 偏移量,Int32 大小)Int32 大小)在 System.Net.PooledStream.Read(字节 [] 缓冲区,Int32 偏移量,Int32 大小)在 System.Net.Connection.SyncRead(HttpWebRequest 请求,布尔 userRetrievedStream,布尔 probeRead)--System.Net.Sockets 处的SocketException .Socket.Receive(Byte[] 缓冲区,Int32 偏移量,Int32 大小,SocketFlags socketFlags) 在 System.Net.Sockets.NetworkStream.Read(Byte[] 缓冲区,Int32 偏移量,Int32 大小)

0 投票
0 回答
61 浏览

javascript - 错误:[hasElementById("xx")] 错误响应状态:17,JavaScriptError - 执行用户提供的 JavaScript 时发生错误。硒错误:

我正在使用 InternetExplorerDriver 32 位开发 Selenium,以在 Windows 2016 上测试我的 webapp。我的代码是用 javascript 编写的。我正在使用 amdc/wd 作为网络驱动程序。该代码在 Chrome 和 Safari 浏览器上运行良好,但在 IE 上,我看到以下错误:

硒错误:

请提出修复建议。

0 投票
3 回答
2324 浏览

selenium - Webdriver 在 IE11 和 Windows 10 中输入速度很慢

在执行测试用例时,字符的输入速度非常慢。我正在使用 Windows10 + Selenium 2.39 + IE 11 + IEDriverServer(64 位),也尝试用 32 位替换它,但无济于事。检查了所有安全区域设置并尝试了所有可用的在线资源。任何解决方案或我应该降级操作系统到Windows 7(因为它在win7上运行良好)。

0 投票
0 回答
680 浏览

c# - Selenium webdriver:IE 崩溃并显示“IE 驱动程序的命令行服务器已停止工作”

当我尝试清除 Internet Explorer 中的所有 cookie 时,webdriver (IEDriverServer) 崩溃。该错误在其他情况下不会出现。

查看屏幕截图

.Net (c#) 代码:

我使用以下版本:

  • Selenium 独立服务器 - 3.11.0
  • Internet Explorer 驱动程序服务器 - 3.9.0 (x32)
  • Windows 10 IE 11.1480.14393
  • .NET 框架 4.6.1

堆栈跟踪:

0 投票
4 回答
15303 浏览

selenium - java.net.ConnectException:无法在 Windows 10 上使用 IEDriverServer 和 IE 11 连接到 Selenium 3.11.0 的 localhost 错误

我对硒非常陌生,并试图在我的笔记本电脑中设置硒开始。我无法从我的简单代码中调用 IE。详情如下。你能帮我理解问题出在哪里吗

IE版本:IE 11,IE驱动:64位,操作系统:Windows 10 64位,Selenium版本:3.11

错误:

代码:

0 投票
2 回答
3972 浏览

python - 如何忽略缩放设置

IE忽略缩放设置不起作用,我的代码如下,为什么它不起作用?我收到错误消息(selenium.common.exceptions.SessionNotCreatedException:消息:启动 Internet Explorer 时出现意外错误。浏览器缩放级别设置为 125%。它应该设置为 100%)

0 投票
1 回答
1740 浏览

c# - Internet Explorer 保护模式设置和缩放级别

我试图在运行我的 selenium 脚本时使用上面的代码忽略缩放级别和保护模式设置,但脚本在构建解决方案时显示错误。不知道我哪里出错了。

0 投票
0 回答
903 浏览

selenium - Internet Explorer 未启动,带有 selenium 驱动程序 3.11.0 和 ie 驱动程序 3.11.1

*我无法使用配置 IE Driver 3.11.1 和 selenium 3.11.0 启动 IE。

相同的代码适用于 Selenium WebDriver 3.6.0 ,但在 3.7.0 及更高版本中失败。

代码:-

抛出的错误是:-

org.openqa.selenium.InvalidArgumentException:所有 firstMatch 元素验证失败 firstMatch 元素中的无效功能 0:名为 ensureCleanSession 构建信息的未知功能:版本:'3.9.1',修订:'63f7b50',时间:'2018-02-07T22: 25:02.294Z' 系统信息:主机:'5CG3455ZG9',ip:'10.4.5.242',os.name:'Windows 8.1',os.arch:'amd64',os.version:'6.3',java.version :'1.8.0_161' 驱动程序信息:driver.version:InternetExplorerDriver 远程堆栈跟踪:

驱动程序的路径是正确的。为什么我无法启动 IE?

0 投票
1 回答
2574 浏览

c# - actions.MoveToElement() 不适用于 ie 11

我在 C# 中编写的测试自动化项目中使用的相同方法在 Internet Explorer 11 中不起作用,即使我使用的移动方法是 chrome、firefox 和 edge。它没有给出任何错误,但下一个动作是失败