我目前正在做一个项目,使用selenium自动化用Angular JS开发的页面。这个测试在windows机器上的Firefox25上运行得很好,但是当我通过IE10运行相同的测试时,我得到了随机的失败。测试单击页面上的不正确元素会导致测试超时并失败。
我使用selenium-server-standalone-2.42.2和IEDriverServer_x64_2.42.0驱动程序。我也在使用CSS选择器,而不是x-path,因为我在某处读到x-path可能是问题所在。
发布于 2014-09-08 22:34:51
将IE NativeEvents设置为false。这可能是原因之一。设置如下所示:
var ieOptions = new InternetExplorerOptions{EnableNativeEvents = false};
Driver = new InternetExplorerDriver(ieOptions);
https://stackoverflow.com/questions/25722991
复制相似问题