Firefox 第页双击广告进行硒测试
我目前正在为一个页面编写一个selenium测试用例,该页面的页眉和页脚中集成了双击广告 Selenium在测试此页面之前工作得非常好,测试中断,出现以下问题Firefox 第页双击广告进行硒测试,firefox,selenium,selenium-webdriver,Firefox,Selenium,Selenium Webdriver,我目前正在为一个页面编写一个selenium测试用例,该页面的页眉和页脚中集成了双击广告 Selenium在测试此页面之前工作得非常好,测试中断,出现以下问题 Exception class=[java.lang.IllegalArgumentException] com.gargoylesoftware.htmlunit.ScriptException: Exception invoking Window.getComputedStyle() with arguments [Text, Str
Exception class=[java.lang.IllegalArgumentException]
com.gargoylesoftware.htmlunit.ScriptException: Exception invoking Window.getComputedStyle() with arguments [Text, String]
at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:669)
at net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
at net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
我不知道有谁经历过这个问题。
这是我的书堆
WebDrive:Firefox
HtmlUnit 2.12
Selenium-htmlunit-driver-2.33.0
我认为css是通过双击运行时拉出来的,导致了这个问题。
这方面的任何帮助都会很有帮助。如果您提供了测试页面中要自动执行的部分的html代码和Selenium代码来自动执行测试用例,那么它将对您有所帮助。可能的重复