Protractor initiates the Firefox browser, yet fails to execute any test scripts

Every time I attempt to run protractor in Firefox, the browser launches and displays a blank tab, without executing any specs. Eventually, an error message appears:

WebDriverError: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
"}],"targetPlatforms":[],"seen":true}
...

Oddly enough, when I use selenium webdriver directly in my script, everything runs smoothly with Firefox. It seems like the issue lies specifically within protractor!

Here is the configuration file for my protractor setup:

require('babel-core/register'); // Spec files are in ES2015

exports.config = {
    framework: 'jasmine2',
    capabilities: {
        browserName: 'firefox'
    },
    specs: ['some.spec.js']
};

Regardless of starting webdriver-manager or geckodriver, I consistently end up with just a blank tab. Any suggestions on what might be causing this issue?

Additional details:

"babel-cli": "^6.18.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"protractor": "^5.0.0",
"selenium-webdriver": "^3.0.1"

FF 50 Mac, macOS Sierra 10.12.2

Answer №1

To ensure optimal performance, we suggest utilizing Firefox version 47 with Protractor 5.0.0. For those using Protractor 5.0.0, it is important to include an additional capability in order to disable marionette. By disabling marionette, you will be able to utilize the Firefox legacy driver:

capabilities: {
  browserName: 'firefox',
  marionette: false
}

Although Geckodriver is currently downloaded, it is not actively utilized by Protractor as a result of FF 48+ errors or selenium standalone server errors. For more information, refer to the Protractor CHANGELOG. We will provide updates on recommended FF versions once they are deemed more stable.

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

Calculating the number of duplicate lines in a file with node.js

I am currently working on a project where I need to read a large .csv file line by line, extract the first column (which contains country names), and then count the number of duplicates for each country. For example, if the file contains: USA UK USA The ...

What is the best way to ensure all JavaScript is fully executed on a webpage before utilizing Selenium with Python?

As I work on my webpage, I am using Selenium with Python to locate specific elements within it. However, a challenge that I am facing is that the elements I need are dynamically generated through JavaScript. Upon examining the page source provided to my S ...

What is the best way to confirm if a Json response is empty or not?

{"PatientPastMedicalHistoryGetResult":{"PastMedicalHistory":[]}} The PastMedicalHistory object does not contain any values. How can I verify if it is empty? ...

Turn off javascript on a website that you are embedding into another site

Is it feasible to deactivate JavaScript on a website you are attempting to embed? If the website is working against your embedding efforts, could you effectively neutralize all their JavaScript, even if it requires users to engage with the site without J ...

Issues with triggering the success block in AngularJS and Node.js Express when using $http.get

As a beginner in the world of AngularJS and Node.js, I'm facing an issue with my $http.get method. The problem is that the success callback block does not get executed when the request is successful, whereas the error callback works just fine when the ...

Unable to redirect with Asp response.redirect

I have a Login popup form where I use an ajax post request to Login.asp script in order to prevent the page from going to the POST URL after submission. <script> $(function() { $('#contactForm').submit(function(e){ e.preventDe ...

Tips for saving information from a constantly changing table into a database

I'm currently exploring options for storing data from a dynamic table into a database. Here's the scenario: I'm in the process of creating a system to manage drivers' journeys. The system will track the driver's workday, dividing ...

Using AngularJS to dynamically swap out {{post.title}} with a different HTML file

I want to update the value of {{post.title}} within my HTML to redirect to another HTML file. <div ng-repeat="post in posts"> <h2> {{post.title}} <a ng-click="editPost(post._id)" class="pull-r ...

When attempting to reload a single page application that utilizes AJAX, a 404 error is encountered

Recently, I've been working on coding my personal website and have successfully created a single page application using ajax. The content is dynamically loaded between the header and footer whenever a navigation bar link is clicked. To enable the back ...

Guide for registering to modifications of a single key within a form group in Angular 2

I am facing an issue with my userForm group that consists of keys name, email, and phone. I have implemented an onValueChanged function to validate these fields whenever they are changed. However, the validation runs every time even if the field has not ...

The efficiency of the Angular app in production is hindered by a file that takes a whopping 5 seconds to load

After successfully compiling my project for production using the command ng build --prod, I made sure to implement certain production settings in angular.json: "production": { "fileReplacements": [ { "replace": "src/environments/e ...

What is the best way to extract all XML or DOM elements as text from a parent web element using Selenium with Python?

I have a complex situation where I need to work on a UI element that is presented in a grid format, with rows and columns being individual web elements within the XML/DOM structure. These elements contain text related to the type of column they represent. ...

How can I programmatically grant Chrome access to my microphone?

I am facing a challenge while running tests using webdriverjs and chromedriver as they require microphone permissions. Here is the popup that keeps appearing: https://i.sstatic.net/AYx67.png Attempts made so far: chromedriver.start(['--disable ...

Saving Labels in Firebase after receiving a POST request for a separate group in Node.js

My system comprises two key collections: posts and tags. The posts collection contains a postId and other relevant metadata, including tags. A typical structure of a post is as follows: { "tags": [ "tag1", "tag2", ... ], ...

Looking for guidance on integrating CKEditor in NuxtJs - any tips?

I have been struggling to implement CkEditor, despite using the online-builder tool available at . Here are the packages I have installed: "@ckeditor/ckeditor5-build-classic": "^25.0.0", "@ckeditor/ckeditor5-vue2": "^1.0.5", For reference, you can see th ...

Example of Utilizing Google Places API

The Issue I've been struggling to make this google maps API example function correctly. Even after directly copying the code from Google's website, the example fails to display properly. For instance, the map doesn't show up, the search bar ...

Looking for assistance with submitting a form?

Looking for assistance with a JavaScript hack. Since this morning, I've been trying to figure out a simple hack that would enable me to submit a form multiple times. Take a look at this image. https://i.sstatic.net/GffW1.png It's a basic form ...

InsertOne function in MongoDB schema fails to add property during insertion operation

The issue has been resolved, thank you! Now, when I upload the document it appears in this format: { _id: "5e3b64b6655fc51454548421", todos: [ ], title: "title" } It should be formatted like this, as per the schema where the "title" property is listed ...

Enable the automatic resizing of a div element

This div features inside: <div class="PF"> <img src="img" class="FollowerPic"> <span>Name</span> <div class="Text"></div> <div class="readURL"> ...

Troubleshooting Bootstrap 3.0: Issues with nav-tabs not toggling

I have set up my navigation tabs using Bootstrap 3 in the following way: <ul class="nav nav-tabs pull-right projects" role="tablist" style="margin-top:20px;"> <li class="active"><a role="tab" data-toggle="tab" href="#progress">In Pr ...