Using Firefox 35 with a protraph leads to an error

Run Angular application scripts with chrome, the scripts run successfully, but it stops in the new version of firefox 35.0b6. Anyone please help me in advance.

I am using protractor 1.4.0. My scenario:

describe('99ccs e2e testing', function() { it('check it have a title 99CCS', function() { browser.get('http://99ccs.com/ccsnew/#/login'); //it checks the "http://99ccs.com/ccsnew/" page contains a title "99CCS" expect(browser.getTitle()).toEqual('99CCS'); //it checks when user enter the URL as "http://99ccs.com/ccsnew/" it navigates to "http://99ccs.com/ccsnew/#/login" browser.get('http://99ccs.com/ccsnew/'); expect(browser.getLocationAbsUrl()).toBe('http://99ccs.com/ccsnew/#/login'); //it checks when user enter the URL as "http://99ccs.com/ccsnew/" it navigates to Login page or not browser.getLocationAbsUrl().then(function(url) { expect(url.split('#')[1]).toBe('/login'); }); expect(browser.get('http://99ccs.com/ccsnew/')).toEqual(browser.get('http://99ccs.com/ccsnew/#/login')); //it checks if we give any location url from 99ccs.com/ccsnew without login it navigates to Login page or not expect(browser.get('http://99ccs.com/ccsnew/#/ts/edit/131')).toEqual(browser.get('http://99ccs.com/ccsnew/#/login')); }); }); 

i got an error at console:

+5
source share
1 answer

Selenium 2.44 is not compatible with Firefox 35 . Related questions:

The easiest option is to reinstall firefox to the latest stable version (currently 34.0.5).

UPDATE: selenium 2.45 with fixed firefox compatibility issues was released today (February 28, 2015). At the moment, for protractor work with selenium 2.45 - install it directly from the github protractor master branch:

 $ npm install angular/protractor 

or

 $ npm install git+https:// git@github.com /angular/protractor.git 

FYI, I reproduced the same problems with connecting with protractor 1.5 and the "angularjs.org" stacker tutorial :

 describe('angularjs homepage todo list', function() { it('should add a todo', function() { browser.get('http://www.angularjs.org'); element(by.model('todoText')).sendKeys('write a protractor test'); element(by.css('[value="add"]')).click(); var todoList = element.all(by.repeater('todo in todos')); expect(todoList.count()).toEqual(3); expect(todoList.get(2).getText()).toEqual('write a protractor test'); }); }); 
+8
source

Source: https://habr.com/ru/post/1209871/


All Articles