Encountering difficulties launching Chrome for Protractor testing with WebDriver

I've been working on creating some protractor tests, but I'm facing issues getting it to function correctly.

Currently, I am following a tutorial available at: https://github.com/angular/protractor/blob/master/docs/tutorial.md

This is the content of my conf.js file:

// conf.js
exports.config = {
  framework: 'jasmine',
  seleniumAddress: 'http://localhost:4444/wd/hub',
  specs: ['spec.js'],
  capabilities: {
    'browserName': 'chrome' // or 'safari'
    }
}

Below is the code from my spec.js file:

// spec.js
describe('Protractor Demo App', function() {
  it('should have a title', function() {
    browser.get('http://juliemr.github.io/protractor-demo/');

    expect(browser.getTitle()).toEqual('Super Calculator');
  });
});

This is how the webdriver-manager part looks like when initiated:

$ webdriver-manager start         
... (output continued)

Finally, here is the command used to start the test:

$ protractor conf.js
... (output continued)

Answer №1

Consider switching the version of jasmine from 'jasmine' to 'jasmine2'.

If that doesn't resolve the issue, try upgrading protractor (you can verify the version by running protractor --version). It's also possible that there could be a problem with the system you are using - I tested it on Ubuntu 16.04 and it worked fine. Additionally, make sure to update selenium webdrivers.

Answer №2

Before launching webdriver-manager start, be sure to execute the webdriver-manager update command in your Command Line Interface. After that, you can proceed with running your configuration file.

Important: In case you encounter an SSL error, try using the command webdriver-manger update --ignore_ssl

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

Tips for managing accordion events using a button press

I found a script online that I want to modify. Specifically, I am looking to create a button that will control the accordion event by closing the current div and opening the next one. <button> Click me to open next</button> inside each div in ...

Can SailsJS be used exclusively for API processes?

Can SailsJS be used solely as an API? After downloading the Sails project, is it possible to exclude the views and focus only on utilizing Sails as an API? ...

Retrieve custom content from a database using Laravel and Ajax when clicking on a navigation bar

Recently, I've started working with Laravel 7 and AJAX. One of the features I want to implement is a 'product's name' navbar that displays product details in a div without refreshing the page when clicked. I came across a demo showcasin ...

There are mistakes in the code that I am struggling to fix

I am encountering an issue where my website only functions properly on Firefox and not on Chrome. However, when I run the HTML using NetBeans on Chrome, the website works fine. I'm unsure of what to do as I need to submit this project within the next ...

The timestamp within Javascript setInterval remains static without updates

Recently, I've been experimenting with using setInterval in my Javascript code. As a quick test, I attempted to create a live updating clock display. var tim = new Date(); function loadLog(){ document.getElementById('timebox').innerHTML ...

Don't initialize each variable within the constructor of a class, find a more efficient approach

I have a collection of JavaScript classes representing different models for my database. Each model contains attributes such as name, email, and password. Is there a more efficient way to create a new User instance without manually assigning values to ea ...

Mastering the use of gl Scissor is essential for effectively implementing popups in your

I am attempting to implement a pop-up view on top of the current webGL view. My strategy is as follows: Whenever I need to display a popup, I create a scissorRect and begin rendering the popup scene onto it. I was hoping that the content of the previous s ...

Adjusting the waterlevel model attribute to its standard value

In my Sails.js project, I am looking to reset a model attribute back to its original default value. By default value, I mean the value specified using defaultsTo in the model file. I have attempted methods such as: model.update({id:exampleId}, {myAttrib ...

Attempting to incorporate country flags into the Currency Converter feature

www.womenpalace.com hello :) i'm looking to customize my Currency Converter with Flags images. this is the code for the converter: <select id ="currencies" class="currencies" name="currencies" data-default-shop-currency="{{ shop.currency }}" ...

Selenium error: Tab closed due to missing element - Message: Element not found using {"method":"tag name","selector":"body"}

Currently, I am utilizing Python and Selenium with Firefox for a project. Authentication is required to access certain pages, which involves redirects for logging in and navigating post-login (fortunately, this part is functioning correctly). The next task ...

Organize object keys based on the size of the arrays they contain in JavaScript

I'm working on a project where I need to organize a list of products by manufacturer, displaying them from the one with the most products to the least. I'm looking for an algorithm that will help me sort the object keys accordingly. Below is a s ...

What is the best way to substitute unpredictable dynamic variables on-the-fly?

I am working with a .js file that contains a config structure similar to this: genGetLocations:{ data_url:'restaurants/{var1}/tables/{var2}, } This is just one example. Some configurations may have data_url with more than two dynamic variables. I ...

Tips for creating a smooth transition between background colors within a div

Is there a way to smoothly transition between background colors within a div element? I've been struggling with my code and couldn't find a solution. Any help would be greatly appreciated. Thanks in advance. $(document).ready(function( ...

Can you provide guidance on integrating the Selenium Page Object Pattern C# Code into my project?

Looking to implement the Page Object Pattern in C# with Selenium? Check out this helpful guide: In one of the examples, there is code that looks like this- [FindsBy(How = How.Id, Using = "sb_form_q")] public IWebElement SearchBox { get; set; } If ...

Tips for adding new items to a Masonry Image List using React MUI

As I experiment with utilizing the React MUI Masonry Image List alongside the infinite scroll, I've found that they complement each other quite well. However, a challenge arises when appending new images to the Masonry image list. While I can success ...

The Bootstrap nav-link class functions perfectly in Firefox, smoothly guiding users to the appropriate section. However, it seems to be experiencing some issues

I am currently working on customizing a one-page web template and I don't have much experience with Bootstrap. The template can be found at . My issue is that the menu items are not functional in Chrome. When I click on any menu item, nothing happens ...

Is there a way for me to store the retrieved information from an API into a global variable using Node.js?

function request2API(option){ const XMLHttpRequest = require('xhr2');//Cargar módulo para solicitudes xhr2 const request = new XMLHttpRequest(); request.open('GET', urlStart + ChList[option].videosList + keyPrefix + key); request. ...

The Three.js loading bar fails to disappear after the model has finished loading

I have created a page that is inspired by this example and have incorporated relevant lines from the webgl_material_bumpmap example to implement a loading progress Dom Element. You can view the page (temporarily) here. If the information provided below is ...

Selenium encounters an issue when trying to establish a connection with chromedriver

My code runs perfectly on my local machine, but I encountered an error when running it on PythonAnywhere. Code: from seleniumbase import Driver driver = Driver(uc=True, headless=True, no_sandbox=True, disable_gpu=True) try: dr ...

Can the server determine if a Parse user is currently logged in?

My current system allows users to log in or sign up client side, but I want to verify their login status from the server when they land on a page through a GET request. Is it feasible to do this? ...