Encountering an error when utilizing Firefox version 35 with protractor

When running my Angular app scenarios with Chrome, everything runs smoothly. However, I encounter a halt when trying to run the scenarios on Firefox version 35.0b6. Any help would be greatly appreciated. Thank you in advance.

I am currently using Protractor 1.4.0. Here is an example of one of my scenarios:

describe('99ccs end-to-end testing', function() {
    it('should have a title of 99CCS', function() {
        browser.get('http://99ccs.com/ccsnew/#/login');

        // Check if the page contains the title "99CCS"
        expect(browser.getTitle()).toEqual('99CCS');

        // Check if navigating to subpage works correctly
        browser.get('http://99ccs.com/ccsnew/');
        expect(browser.getLocationAbsUrl()).toBe('http://99ccs.com/ccsnew/#/login');

        // Check if redirection to login page works as expected
        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'));

        // Check if attempting to access a different subpage without logging in redirects to login page
         expect(browser.get('http://99ccs.com/ccsnew/#/ts/edit/131')).toEqual(browser.get('http://99ccs.com/ccsnew/#/login'));
    });
});

Answer №1

Firefox 35 is currently not compatible with Selenium 2.44. Here are some related issues:

The simplest solution at the moment would be to downgrade Firefox to the latest stable version (currently 34.0.5).

UPDATE: A version of selenium 2.45 which addresses compatibility issues with Firefox has been released today (Feb 28, 2015). To ensure that protractor works with this updated version of selenium, you can install it directly from the protractor github master branch:

$ npm install angular/protractor

or

$ npm install git+https://<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="781f110c381f110c100d1a561b1715">[email protected]</a>/angular/protractor.git

Just a heads up, I have encountered similar connection issues with protractor 1.5 while running the "angularjs.org" protractor tutorial test case:

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');
    });
});

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The challenge with Normalizr library in Redux and how to address it

I am currently attempting to utilize the Normalizr library by Paul Armstrong in order to flatten the Redux state. Below are the schema definitions: import { normalize, schema } from 'normalizr' const fooSchema = new schema.Entity('foos&apo ...

configuring the resolver in Angular's routeProvider

Recently, I started working with an Angular 1.x boilerplate and encountered a problem. I am unable to send a promise from the service into the resolver. function ExampleService($http) { 'ngInject'; const service = {}; let getTasks = ()=> { ...

My cucumber scripts encounter an error when I attempt to run them. How can this issue be resolved?

As a beginner in the world of testing, I am eager to dive into learning about the cucumber automation tool. However, I encountered an error while running a script. Check out the image by clicking here. ...

In my JavaScript code for generating a Fibonacci series, I aim to include a comma at the end of each string

I am currently working on a JavaScript program to generate a Fibonacci series, and there are certain conditions that need to be met: Each number in the series should be separated by a comma. The method should handle invalid values and return -1 for integ ...

JavaScript may fail to execute properly if the <!doctype html> declaration is not inserted in the correct syntax

While building a web page, I encountered an issue with my JavaScript code not working when using <!doctype html> or any type of <!doctype> at the top of the page. Can someone explain this error? After researching online, I learned that <!do ...

How can you transform attribute and value pairs from a DOM element into a JavaScript object?

Is there a quick method to transform a DOM element along with its attributes and values into a JavaScript object? For example, converting this snippet from the HTML page: <div id="snack" type="apple" color="red" size="large" quantity=3></div> ...

I am experiencing an issue where the onChange event is not being triggered in my React application

I am currently in the process of creating a random football team picker and handling the database on my own. However, I seem to be encountering issues with the inputs. import React, { use, useRef, useState } from "react"; const fetchAll = async ...

What could be the reason for the emptiness of my AngularJS scope object?

The code snippet in my controller looks like this: app.controller("weeklyLogViewer", function ($scope, $http){ $scope.allLogs = {}; $http({ method: 'POST', url: '../Utilities/WeeklyLog.php', data: $scope.dateSelected, ...

I'm looking for a way to connect to my X-UI database using node.js - can anyone

I am looking to develop an app in node.js that will allow me to create my own RESTful APIs using a x-ui Xray graphical management panel. My goal is to be able to handle operations such as creating, editing, and retrieving data through the HTTP protocol. In ...

Tap to smoothly scroll through each block using the animate() function

ul { padding: 0; margin: 0; height: 180px; overflow: auto; } li { height: 50px; background: pink; list-style: none; margin-bottom: 10px; height: 50px; ...

Sails.js: Issue with unintended premature sending of 200 response before desired response is sent

While working with Sails.js version 1.2.3, I encountered an issue where I was unable to send data from a file as a response to a GET request over HTTP or WebSockets. It seems that regardless of whether I access the file synchronously or asynchronously in t ...

JavaScript counter that keeps updating without pause

How can I create a live and continuous number counter on my website? After seeing the question above, I am interested in implementing a similar feature but with a slight twist. I am looking to have a counter that increments by 15.8 cents per second start ...

My controller in AngularJS is having trouble fetching the latest values of the $scope variables

In my code, I've included the relevant snippet below. The base angularJS seems to be functioning properly as the HTML document doesn't display {{}} variables but instead remains blank. I suspect that this is due to the variables receiving a null ...

Using Selenium Web Driver to interact with buttons within Eclipse IDE

Can Selenium Web Driver be used to launch an IDE and click a button within it? I have a website where clicking a button triggers actions in Eclipse IDE. Selenium Web Driver typically interacts with web content, but is there a way to integrate it with Ecl ...

Suggestions for waiting until a button is clicked in Selenium WebDriver using C#?

When using the Firefox browser, the task is to wait for a button element to be clicked. How can we accomplish this? The code wait.Until(ExpectedConditions.ElementExists(By.Id("")) does not seem to be effective in this situation. ...

How can you extract information from a text document and seamlessly incorporate it into an HTML webpage?

I am currently working with an HTML file structured like this.. <html> <body> <table border="1" cellpadding="5"> <tr> <td>Some Fixed text here</td> <td id="data">---here data as per values in external text file--- ...

Opening a new window in JavaScript and passing additional parameters

I am facing an issue with my JavaScript link There is a hidden input field named "domain" Below is a div with an onclick script: <div id="button" onclick="window.open('http://www.mylink.nl/?domein=' + document.getElementById('domein&ap ...

The TypeScript datatype 'string | null' cannot be assigned to the datatype 'string'

Within this excerpt, I've encountered the following error: Type 'string | null' cannot be assigned to type 'string'. Type 'null' cannot be assigned to type 'string'. TS2322 async function FetchSpecificCoinBy ...

What is the process for transmitting a base64-encoded image from AngularJS to Laravel using the POST method?

Hey there! I am a beginner in Laravel and AngularJS. I have a question about sending an uploaded image (converted to base64) to Laravel. This is how my HTML code looks: <input type="file" class="upload upload-button" fileinput="fileinput" filep ...

Navigating through different sections of a website using AngularJS routing based on ng-view located

Recently, I started delving into Angular and experimenting with setting up basic routing. On my landing page (currently named index2.html), I have included some .js and .css files, as well as a div with <ng-view></ng-view> to display my content ...