IEDriverserver.exe有时会使用selenium崩溃。看起来它与记忆有关,我怎样才能增加它?

时间:2017-11-22 23:15:25

标签: selenium crash selenium-iedriver iedriverserver

我有一个使用IEDriver.exe运行selenium测试的maven项目。有时IEDriver会崩溃并显示消息" 0x6b5bebe4处的指令引用了0x6aaa6830"处的内存。看起来它与内存有关,我应该在运行mvn测试时增加内存吗?如果是,我应该使用什么命令?

我用来运行硒测试的命令是:mvn test -Pmyprofile

    cucumber.runtime.CucumberException: 
org.openqa.selenium.NoSuchElementException: Unable to find element with id == USERID (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.23 seconds. For documentation on this error, please visit:  http://seleniumhq.org/exceptions/no_such_element.html
Build info: version: '2.47.1', revision: 'unknown', time: '2015-07-30 11:02:44'
System info: host: '10-118-144-236', ip: '10.118.144.236', os.name: 'Windows Server 2012 R2', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_25'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver
Capabilities [{browserAttachTimeout=0, enablePersistentHover=true, ie.forceCreateProcessApi=false, ie.usePerProcessProxy=false, ignoreZoomSetting=false, handlesAlerts=true, version=11, platform=WINDOWS, nativeEvents=true, ie.ensureCleanSession=false, elementScrollBehavior=0, ie.browserCommandLineSwitches=, requireWindowFocus=false, browserName=internet explorer, initialBrowserUrl=http://localhost:30820/, takesScreenshot=true, javascriptEnabled=true, ignoreProtectedModeSettings=true, enableElementCacheCleanup=true, cssSelectorsEnabled=true, unexpectedAlertBehaviour=dismiss}]
Session ID: c861d008-b25b-4845-80ae-4c99ffb5a970
*** Element info: {Using=id, value=USERID}
    at com.cucumber.StepDefinitions.DNIOrderSearch.feature(DNIOrderSearch.java:44)
Caused by: org.openqa.selenium.NoSuchElementException: 
Unable to find element with id == USERID (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 60.23 seconds

0 个答案:

没有答案