node.js - Protractor - The test running always crashes after some time -
i've 15 scripts inside test cases pull , every full running after 10 passed scripts crashes. don't know reason.
the error webdriver log:
catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]] 09:07:52.676 info - executing: [find elements: by.cssselector: [ng-click="opensettings()"]]) 09:07:52.704 info - done: [find elements: by.cssselector: [ng-click="opensettings()"]] 09:07:52.719 info - executing: [click: 556 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="opensettings()"]]]) 09:07:52.769 info - done: [click: 556 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="opensettings()"]]] 09:07:52.788 info - executing: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]]) 09:07:55.950 info - done: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]] 09:07:56.019 info - executing: [find elements: by.cssselector: div.content-holder]) 09:07:56.073 info - done: [find elements: by.cssselector: div.content-holder] 09:07:56.090 info - executing: [is enabled: 557 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: div.content-holder]]) 09:07:56.106 info - done: [is enabled: 557 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: div.content-holder]] 09:07:56.125 info - executing: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]]) 09:07:56.153 info - done: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]] 09:07:56.182 info - executing: [find elements: by.cssselector: div.content-holder]) 09:07:56.207 info - done: [find elements: by.cssselector: div.content-holder] 09:07:56.219 info - executing: [is displayed: 557 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: div.content-holder]]) 09:07:56.245 info - done: [is displayed: 557 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: div.content-holder]] 09:07:56.276 info - executing: [take screenshot]) 09:07:56.726 info - done: [take screenshot] 09:07:58.901 info - executing: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]]) 09:07:58.953 info - done: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]] 09:07:58.977 info - executing: [find elements: by.cssselector: [ng-click="logout()"]]) 09:07:59.004 info - done: [find elements: by.cssselector: [ng-click="logout()"]] 09:07:59.017 info - executing: [click: 558 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="logout()"]]]) 09:07:59.066 info - done: [click: 558 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="logout()"]]] 09:07:59.081 info - executing: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]]) 09:08:02.493 info - done: [execute async script: try { return (function (rootselector, callback) { var el = document.queryselector(rootselector); try { if (!window.angular) { throw new error('angular not found on window'); } if (angular.gettestability) { angular.gettestability(el).whenstable(callback); } else { if (!angular.element(el).injector()) { throw new error('root element (' + rootselector + ') has no injector.' + ' may mean not inside ng-app.'); } angular.element(el).injector().get('$browser'). notifywhennooutstandingrequests(callback); } } catch (err) { callback(err.message); } }).apply(this, arguments); } catch(e) { throw (e instanceof error) ? e : new error(e); }, [body]] 09:08:02.517 info - executing: [get current url]) 09:08:02.530 info - done: [get current url] 09:08:02.550 info - executing: [take screenshot]) 09:08:02.762 info - done: [take screenshot] 09:08:02.915 info - executing: [get: http://app.vcita.com/auth/login]) 09:08:05.075 info - done: [get: http://app.vcita.com/auth/login] 09:08:07.103 info - executing: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]]) 09:08:07.152 info - done: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]] 09:08:07.165 info - executing: [is enabled: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]]) 09:08:07.181 info - done: [is enabled: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]] 09:08:07.198 info - executing: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]]) 09:08:07.224 info - done: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]] 09:08:07.234 info - executing: [is displayed: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]]) 09:08:07.260 info - done: [is displayed: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]] 09:08:07.277 info - executing: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]]) 09:08:07.294 info - done: [find elements: by.cssselector: [ng-click="connectwithgoogle()"]] 09:08:07.306 info - executing: [click: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]]) 09:08:07.356 info - done: [click: 559 [[chromedriver: chrome on xp (c34b09675c4b68b64f4e311473887133)] -> css selector: [ng-click="connectwithgoogle()"]]] 09:08:07.370 info - executing: [get window handles]) 09:08:07.430 info - done: [get window handles] 09:08:09.450 info - executing: [get window handles]) 09:08:09.481 info - done: [get window handles] 09:08:09.516 info - executing: [switch window: cdwindow-bb2a3bfa-c4a0-4fbf-9c76-e05f326d7dfb]) 09:08:09.543 info - done: [switch window: cdwindow-bb2a3bfa-c4a0-4fbf-9c76-e05f326d7dfb] 09:08:09.561 info - executing: [find elements: by.id: choose-account-0]) 09:08:10.944 warn - exception thrown java.lang.nullpointerexception @ org.openqa.selenium.remote.remotewebdriver.findelements(remotewebdriver.java:386) @ org.openqa.selenium.remote.remotewebdriver.findelementsbyid(remotewebdriver.java:397) @ org.openqa.selenium.by$byid.findelements(by.java:206) @ org.openqa.selenium.remote.remotewebdriver.findelements(remotewebdriver.java:340) @ sun.reflect.generatedmethodaccessor18.invoke(unknown source) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ org.openqa.selenium.support.events.eventfiringwebdriver$2.invoke(eventfiringwebdriver.java:101) @ com.sun.proxy.$proxy1.findelements(unknown source) @ org.openqa.selenium.support.events.eventfiringwebdriver.findelements(eventfiringwebdriver.java:173) @ org.openqa.selenium.remote.server.handler.findelements.call(findelements.java:49) @ org.openqa.selenium.remote.server.handler.findelements.call(findelements.java:1) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ org.openqa.selenium.remote.server.defaultsession$1.run(defaultsession.java:168) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) 09:08:10.999 warn - exception: null 09:08:11.126 info - executing: [take screenshot]) 09:08:11.162 warn - exception thrown org.openqa.selenium.nosuchwindowexception: no such window: target window closed unknown error: web view not found (session info: chrome=47.0.2526.111) (driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=windows nt 10.0 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 11 milliseconds build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' system info: host: 'vcitaqa', ip: '10.0.0.133', os.name: 'windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_65' driver info: org.openqa.selenium.chrome.chromedriver capabilities [{applicationcacheenabled=false, rotatable=false, mobileemulationenabled=false, chrome={userdatadir=c:\users\idan\appdata\local\temp\scoped_dir8884_17032}, takesheapsnapshot=true, databaseenabled=false, handlesalerts=true, version=47.0.2526.111, platform=xp, browserconnectionenabled=false, nativeevents=true, acceptsslcerts=true, locationcontextenabled=true, webstorageenabled=true, browsername=chrome, takesscreenshot=true, javascriptenabled=true, cssselectorsenabled=true}] session id: c34b09675c4b68b64f4e311473887133 @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl.java:62) @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl.java:45) @ java.lang.reflect.constructor.newinstance(constructor.java:422) @ org.openqa.selenium.remote.errorhandler.createthrowable(errorhandler.java:204) @ org.openqa.selenium.remote.errorhandler.throwifresponsefailed(errorhandler.java:156) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:599) @ org.openqa.selenium.remote.remotewebdriver.execute(remotewebdriver.java:622) @ org.openqa.selenium.remote.remotewebdriver.getscreenshotas(remotewebdriver.java:324) @ org.openqa.selenium.remote.server.handler.capturescreenshot.call(capturescreenshot.java:35) @ org.openqa.selenium.remote.server.handler.capturescreenshot.call(capturescreenshot.java:1) @ java.util.concurrent.futuretask.run(futuretask.java:266) @ org.openqa.selenium.remote.server.defaultsession$1.run(defaultsession.java:168) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ java.lang.thread.run(thread.java:745) 09:08:11.283 warn - exception: no such window: target window closed unknown error: web view not found (session info: chrome=47.0.2526.111) (driver info: chromedriver=2.14.313457 (3d645c400edf2e2c500566c9aa096063e707c9cf),platform=windows nt 10.0 x86_64) (warning: server did not provide stacktrace information) command duration or timeout: 11 milliseconds build info: version: '2.45.0', revision: '5017cb8', time: '2015-02-26 23:59:50' system info: host: 'vcitaqa', ip: '10.0.0.133', os.name: 'windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_65' driver info: org.openqa.selenium.chrome.chromedriver capabilities [{applicationcacheenabled=false, rotatable=false, mobileemulationenabled=false, chrome={userdatadir=c:\users\idan\appdata\local\temp\scoped_dir8884_17032}, takesheapsnapshot=true, databaseenabled=false, handlesalerts=true, version=47.0.2526.111, platform=xp, browserconnectionenabled=false, nativeevents=true, acceptsslcerts=true, locationcontextenabled=true, webstorageenabled=true, browsername=chrome, takesscreenshot=true, javascriptenabled=true, cssselectorsenabled=true}] session id: c34b09675c4b68b64f4e311473887133
please figure out reason this. thanks.
Comments
Post a Comment