【发布时间】:2015-11-21 18:49:33
【问题描述】:
Selendroid 无法点击 WebView 中的 UI 元素,但能够识别 Web 元素。
以下是堆栈跟踪。请帮忙。
org.openqa.selenium.WebDriverException: CATCH_ALL:
java.lang.NumberFormatException: Invalid int: "{"message":"Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: \"default-src 'self'\".\n"}"
at java.lang.Integer.invalidInt(Integer.java:138)
at java.lang.Integer.parse(Integer.java:410)
【问题讨论】:
-
原生视图运行良好。但仅在服务器最近更改后的 Web 视图中可见。在早期的构建中,相同的操作会起作用
标签: selenium selenium-webdriver appium selendroid