selenium - Child 2960 ###!!! ABORT: Aborting on channel error -
when running selenium 2.53.1 on win7pro machine, error below. found bug in firefox. using version 49.0.2, did not expect error because resolved.
how can resolve this?
option #1: remembered installed older version (48.0.2). removed versions of ff , installed latest version. unfortunatly did not solve issue.
option #2: when changed url, acceptance env instead of test, able enter values , process testcases. might ssl certificates???
note: reputation not enough ask question here had ask in new one.
also if more info needed, add it.
2016-11-08 11:22:07,316 - info nl.spp.browsercontroller - configuring firefox 2016-11-08 11:22:07,434 - info nl.spp.browsercontroller - starting firefox 1478600528072 geckodriver info listening on 127.0.0.1:44190 1478600528098 mozprofile::profile info using profile path c:\users\ad529~1.dia\appdata\local\temp\rust_mozprofile.wou06xtrmvik 1478600528101 geckodriver::marionette info starting browser c:\program files (x86)\mozilla firefox\firefox.exe 1478600528113 geckodriver::marionette info connecting marionette on localhost:51363 1478600530286 marionette info listening on port 51363 1478600532338 marionette info startbrowser 521e1fd8-3c94-4c4e-a244-cfbf62c951d8 2016-11-08 11:22:12,841 - info nl.spp.browsercontroller - firefox loaded. 2016-11-08 11:22:12,862 - debug nl.spp.controller - loading: https://cimlamp12/login 2016-11-08 11:22:13,287 - debug nl.spp.framework - error loading page (warning: server did not provide stacktrace information) command duration or timeout: 407 milliseconds build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' system info: host: 'computer0139', ip: '10.3.0.204', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102' driver info: org.openqa.selenium.firefox.marionettedriver capabilities [{rotatable=false, raisesaccessibilityexceptions=false, marionette=true, appbuildid=20161019084923, version=, platform=xp, proxy={}, command_id=1, specificationlevel=0, acceptsslcerts=false, processid=4600, binary=c:\program files (x86)\mozilla firefox\firefox.exe, browserversion=49.0.2, platformversion=6.1, xulappid={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browsername=firefox, takesscreenshot=true, takeselementscreenshot=true, platformname=windows_nt, device=desktop, firefox_profile=uesdbbqacagiamnaaekaaaaaaaaaa...}] session id: 521e1fd8-3c94-4c4e-a244-cfbf62c951d8 2016-11-08 11:22:13,289 - error testresultslogger - error loading page (warning: server did not provide stacktrace information) command duration or timeout: 407 milliseconds build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' system info: host: 'computer0139', ip: '10.3.0.204', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102' driver info: org.openqa.selenium.firefox.marionettedriver capabilities [{rotatable=false, raisesaccessibilityexceptions=false, marionette=true, appbuildid=20161019084923, version=, platform=xp, proxy={}, command_id=1, specificationlevel=0, acceptsslcerts=false, processid=4600, binary=c:\program files (x86)\mozilla firefox\firefox.exe, browserversion=49.0.2, platformversion=6.1, xulappid={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browsername=firefox, takesscreenshot=true, takeselementscreenshot=true, platformname=windows_nt, device=desktop, firefox_profile=uesdbbqacagiamnaaekaaaaaaaaaa...}] session id: 521e1fd8-3c94-4c4e-a244-cfbf62c951d8 2016-11-08 11:22:13,305 - error testresultslogger - testcase: tcdi01 failed! 2016-11-08_11-22-13.305 2016-11-08 11:22:13,327 - info nl.spp.controller - stopping firefox child 3732 ###!!! abort: aborting on channel error.: file c:/builds/moz2_slave/m-rel-w32-00000000000000000000/build/src/ipc/glue/messagechannel.cpp, line 2052 exception in thread "main" org.openqa.selenium.remote.unreachablebrowserexception: error communicating remote browser. may have died. build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:32:46' system info: host: 'computer0139', ip: '10.3.0.204', os.name: 'windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102' driver info: driver.version: remotewebdriver capabilities [{rotatable=false, raisesaccessibilityexceptions=false, marionette=true, appbuildid=20161019084923, version=, platform=xp, proxy={}, command_id=1, specificationlevel=0, acceptsslcerts=false, processid=4036, binary=c:\program files (x86)\mozilla firefox\firefox.exe, browserversion=49.0.2, platformversion=6.1, xulappid={ec8030f7-c20a-464f-9b0e-13a3a9e97384}, browsername=firefox, takesscreenshot=true, takeselementscreenshot=true, platformname=windows_nt, device=desktop, firefox_profile=uesdbbqacagiac9waekaaaaaaaaaa...}] session id: 927daba8-9f7c-4e69-ac4c-a0a1ce1b7b39 @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:665) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:701) @ org.openqa.selenium.remote.remotewebdriver.quit(remotewebdriver.java:526) @ nl.spp.controller.stopbrowser(controller.java:213) @ nl.spp.framework.running(framework.java:140) @ nl.spp.framework.start(framework.java:80) @ nl.spp.apl.main(apl.java:37) caused by: java.lang.illegalstateexception: unixutils may not used on windows @ org.openqa.selenium.os.processutils.getprocessid(processutils.java:189) @ org.openqa.selenium.os.unixprocess$seleniumwatchdog.getpid(unixprocess.java:222) @ org.openqa.selenium.os.unixprocess$seleniumwatchdog.access$3(unixprocess.java:221) @ org.openqa.selenium.os.unixprocess.destroy(unixprocess.java:132) @ org.openqa.selenium.os.commandline.destroy(commandline.java:155) @ org.openqa.selenium.remote.service.driverservice.stop(driverservice.java:196) @ org.openqa.selenium.remote.service.drivercommandexecutor.execute(drivercommandexecutor.java:94) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:644) ... 6 more
the code use start ff:
public webdriver loadbrowser(string strbrowser) { webdriver driver = null; //string xport = system.getproperty("lmportal.xvfb.id", ":1"); //system.setproperty("webdriver.gecko.driver", "c:\\programs\\geckodriver\\geckodriver.exe"); system.setproperty("webdriver.gecko.driver", "f:\\project\\geckodriver\\wires.exe"); //system.setproperty("webdriver.firefox.marionette", "c:\\programs\\geckodriver\\geckodriver.exe"); if(strbrowser.equals("firefox")) { // start firefox log.info("configuring firefox"); //now can initialize marionette driver launch firefox desiredcapabilities capabilities = desiredcapabilities.firefox(); capabilities.setcapability("marionette", true); //windows config capabilities.setcapability("binary", "c:\\program files (x86)\\mozilla firefox\\firefox.exe"); //linux config //capabilities.setcapability("binary", "/usr/bin/firefox"); //setting profile firefoxprofile profile = new firefoxprofile(); profile.setenablenativeevents(true); profile.setpreference( "intl.accept_languages", "no,en-us,en" ); profile.setpreference( "privacy.clearonshutdown.cookies", true ); profile.setpreference( "privacy.clearonshutdown.formdata", true ); profile.setpreference( "privacy.donottrackheader.enabled", true ); profile.setpreference( "browser.tabs.tabmaxwidth", 100 ); profile.setpreference( "browser.cache.disk.capacity", 10240 ); profile.setpreference( "browser.link.open_newwindow.override.external", 2); capabilities.setcapability(firefoxdriver.profile, profile); log.info("starting firefox"); //setting environment driver = new marionettedriver(capabilities); driver.manage().timeouts().implicitlywait(long.parselong(conconfig.getproperty("implicit wait")), timeunit.seconds); log.info("firefox loaded."); } else if(strbrowser.equals("chrome")) { log.info("starting chrome"); system.setproperty("webdriver.chrome.driver", "c:\\program files (x86)\\google\\chromedriver2016\\chromedriver.exe"); driver = new chromedriver(); driver.manage().timeouts().implicitlywait(long.parselong(conconfig.getproperty("implicit wait")), timeunit.seconds); log.info("chrome loaded."); } return driver; }
Comments
Post a Comment