Internet Explorer 11 does not close after Selenium Test -


we have multiple windows server 2012 machines setup on google cloud running selenium tests. running mocha in nodejs. chrome , firefox starting, running, , closing expected ie 11 not close. result, selenium server stops responding , tests in ie begin fail.

here code before , after each hooks

// launches browser, opens homepage, , closes popup. exports.beforeeach = function(capability) {    driver = utils.driver.launch(capability);    utils.driver.open(driver);    utils.driver.closepopup(driver); }  exports.aftereach = function() {   driver.quit(); } 

the capabilities have set following

{   browsername: browser,   version: version,   screenresolution: resolution,    requirewindowfocus: true,   unexpectedalertbehaviour: "dismiss",   ignoreprotectedmodesettings: false,   ignorezoomsetting: false,   nativeevents: true,   handlesalerts: true,   javascriptenabled: true,   enableelementcachecleanup: true,   cssselectorsenabled: true,   useperprocessproxy: false,   elementscrollbehavior: 0,   enablepersistenthover: false,   pageloadstrategy: "normal",    ie: {     ensurecleansession: true,     forcecreateprocessapi: true,     browsercommandlineswitches: "-private"   } } 

i've searched around few days , have tried different combinations of driver.close(), driver.quit(), ie settings, , capability settings, haven't worked , don't know else try. since ie not closing it's making practically impossible test in browser. after 3 tests server slows down , have login , close windows manually.

if not able close ie webdriver commands , @ moment becomes stopping stone, why cant take language may java side close it.

  try { runtime.getruntime().exec("taskkill /f /im iedriverserver.exe"); } catch (ioexception e) { e.printstacktrace(); } 

known close browser driver command till works hope can try above. see this

thank you, murali


Comments

Popular posts from this blog

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -

asp.net mvc - breakpoint on javascript in CSHTML? -