javascript - Firefox with Protractor - testForAngular: Document was unloaded during execution -
- firefox version: 54.0.1 (32-bit)
- protractor version: 5.1.2
when trying run protractor tests firefox, i'm getting following error:
failed: error while running testforangular: document unloaded during execution build info: version: '3.5.0', revision: '8def36e068', time: '2017-08-10t23:00:22.093z' system info: host: 'desktop-9avdli7', ip: '192.168.2.100', os.name: 'windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' driver info: driver.version: unknown error: error while running testforangular: document unloaded during execution build info: version: '3.5.0', revision: '8def36e068', time: '2017-08-10t23:00:22.093z' system info: host: 'desktop-9avdli7', ip: '192.168.2.100', os.name: 'windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_131' driver info: driver.version: unknown @ executeasyncscript_.then (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\lib\browser.ts:945:27) @ managedpromise.invokecallback_ (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:1366:14) @ taskqueue.execute_ (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2970:14) @ taskqueue.executenext_ (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2953:27) @ asyncrun (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:2813:27) @ c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\lib\promise.js:676:7 @ process._tickcallback (internal/process/next_tick.js:109:7) from: task: run it("should select hindi option") in control flow @ object.<anonymous> (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasminewd2\index.js:94:19) @ attemptasync (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3945:24) @ queuerunner.run (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3884:9) @ queuerunner.execute (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3872:10) @ spec.queuerunnerfactory (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:816:35) @ spec.execute (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:473:10) @ object.fn (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:4975:37) @ attemptasync (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3945:24) @ queuerunner.run (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3884:9) @ queuerunner.execute (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:3872:10) asynchronous test: error @ suite.<anonymous> (c:\users\lenovo g50-70\ideaprojects\com.protractortest.myapp\tests\languageselectionpopup\hindiselection.js:6:5) @ addspecstosuite (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:994:25) @ env.describe (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:961:7) @ describe (c:\users\lenovo g50-70\appdata\roaming\npm\node_modules\protractor\node_modules\jasmine-core\lib\jasmine-core\jasmine.js:4031:18) @ object.<anonymous> (c:\users\lenovo g50-70\ideaprojects\com.protractortest.myapp\tests\languageselectionpopup\hindiselection.js:1:1) @ module._compile (module.js:570:32) @ object.module._extensions..js (module.js:579:10) @ module.load (module.js:487:32) @ trymoduleload (module.js:446:12)
my conf.js file below
exports.config = { framework: 'jasmine', seleniumaddress: 'http://localhost:4444/wd/hub', suites:{ languageselectionpopup: 'tests/languageselectionpopup/*.js' }, restartbrowserbetweentests: true, capabilities: { browsername: 'firefox' } };
and test spec.js below:
describe('testing viu', function() { beforeall(function (){ browser.get('https://viu.com'); }); it('should select hindi option', function () { element(by.xpath('//*[@id="ngdialog1"]/div/div[1]/div/div[1]')).click(); element(by.css('[ng-click="saveselection()"]')).click(); expect(browser.getcurrenturl()).tocontain('in-hindi'); }); });
project structure:
firefox launches , quits when executing tests , results in above mentioned error. after digging through stackoverflow came across comment protractor not support firefox above 47 version. cause? or i'm doing wrong in code?
Comments
Post a Comment