bug统计

1、org.openqa.selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document

提示以上问题一般是时间过短界面未加载出来,一般价格slp睡眠等待就可以了。

2、IE浏览器初始化对象时会报如下错误

错误消息可以像:

启动Internet Explorer时发生意外的错误。保护模式必须设置为相同的值(启用或禁用)为所有区域。

org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information)

org.openqa.selenium.remote.sessionnotfoundexception:意外错误启动Internet Explorer。保护模式的设置是不一样的所有区域。启用保护模式必须设置为相同的值(启用或禁用)为所有区域。(警告:服务器不提供任何堆栈跟踪信息)

解决以上问题可以用如下方法:

与所述https://code.google.com/p/selenium/issues/detail?ID = 1795,在IE中,去工具->Internet选项->安全标签并设置所有区相同的保护模式(可以启用或禁用)。

这也解释了在计算器的答案

它需要在所有区域设置相同的安全级别。这样做,按照下面的步骤:

  1. 打开IE
  2. 去工具-> Internet选项->安全
  3. 将所有带到相同的保护模式,启用或禁用不应该的事。

最后,设置缩放级别100%通过右键点击齿轮位于右上角,使状态栏。 默认缩放级别显示下的现在。

此类问题

原文地址:https://www.cnblogs.com/baixiaozheng/p/5018743.html