无法在Jenkins中使用IE 10/11运行selenium脚本,但对FF来说很好

时间:2016-09-06 12:30:05

标签: selenium jenkins

我正在尝试使用Jenkins中的IE 10/11运行selenium脚本(Jenkins作为Windows服务运行),并且发生在错误之下。对此有何建议?顺便说一句,当它从命令行启动jenkins时,不会发生此错误。

  

org.openqa.selenium.NoSuchElementException:无法找到id == outerForm:headerDate的元素(警告:服务器未提供任何堆栈跟踪信息)   命令持续时间或超时:60.19秒   有关此错误的文档,请访问:http://seleniumhq.org/exceptions/no_such_element.html   建立信息:版本:'2.53.0',修订版:'35ae25b1534ae328c771e0856c93e187490ca824',时间:'2016-03-15 10:43:46'   系统信息:主机:'CIS-GSSBLD1',ip:'10 .1.104.48',os.name:'Windows Server 2012 R2',os.arch:'amd64',os.version:'6.3',java.version: '1.8.0_77'   驱动程序信息:org.openqa.selenium.ie.InternetExplorerDriver   Capabilities [{browserAttachTimeout = 0,enablePersistentHover = false,ie.forceCreateProcessApi = false,pageLoadStrategy = normal,ie.usePerProcessProxy = false,ignoreZoomSetting = true,handlesAlerts = true,version = 11,platform = WINDOWS,nativeEvents = true,ie.ensureCleanSession = false,elementScrollBehavior = 0,ie.browserCommandLineSwitches =,requireWindowFocus = false,browserName = internet explorer,initialBrowserUrl = http://localhost:26557/,takesScreenshot = true,javascriptEnabled = true,ignoreProtectedModeSettings = true,enableElementCacheCleanup = true,cssSelectorsEnabled = true,unexpectedAlertBehaviour =接受}]   会议ID:caed7eef-42b7-4585-9fae-eb80f7ee29e8   ***元素信息:{Using = id,value = outerForm:headerDate}       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)       在org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)       在org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)       在org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)       在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:363)       在org.openqa.selenium.remote.RemoteWebDriver.findElementById(RemoteWebDriver.java:413)       在org.openqa.selenium.By $ ById.findElement(By.java:218)       在org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:355)

0 个答案:

没有答案