Having trouble executing three files in protractor?

Config file :

qa:   ['./specs/log_in.js','./specs/create_position_roles.js'],

When using these specs individually, everything works fine. However, when I add one more file like below:

qa:   ['./specs/log_in.js','./specs/create_project.js','./specs/create_position_roles.js'],

I encounter an error:

ElementNotVisibleError: Element is not currently visible and so may not be interacted with

Answer №1

It's important to note that the browser's state carries over between tests, so actions taken in one test can impact those that follow. For example, if you log in during the log_in.js test and forget to log out, you will remain logged in when the create_project.js test begins. Keep this in mind as you navigate through your testing process.

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

Adjusting size and framing of image upon page load using angular directive

I have created a directive that is responsible for rescaling and cropping an image based on its height and width. angular.module('starter.directives', ['starter.controllers']).directive('styleImage', function () { return { ...

Animating a div to glide back and forth in Javascript - with a quirky little 'ear' twist

I am looking to implement a feature that allows me to slide a div left and right. I have successfully achieved this using a button click, as suggested in other posts. However, What I would like to do now is add a small floating 'ear' icon that ...

Switch _ Click on it is required in python using selenium

I'm attempting to create an xpath for a toggle switch. Essentially, I need to click on the following element in order to toggle it: Actual HTML code <label class="" for="toggleResume" data-e2e="toggleResume"><s ...

establishing the position of the mouse cursor within a scaled div container

Issue at Hand: I'm encountering an obstacle with a transformed div set up as follows: $('#container').css('-moz-transform-origin', '0 0'); $('#container').css('-webkit-transform-origin', '0 0&ap ...

Ways to ascertain if every checkbox in the current container is selected

In my HTML structure, I have multiple sections with the same input class and container. <div class="card-columns"> <div class="card" id="role-card-single" data-total-items="6"> <div class="card ...

React JS: The final input is not updated in the state until after all other

Apologies if I struggle to articulate my issue effectively as English is not my primary language. I have developed a form component (coded in ES6) similar to the following: class Form extends React.Component { constructor(...args) { super(args); ...

When working with Express router callbacks, the Array.includes() method will always return false, the Array.indexOf() method will always return -1, and

After utilizing fs.readFile() and fs.readFileSync() functions to access the content of 'words_alpha.txt', I discovered that the file can be accessed publicly from this link: https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha. ...

Ways to share code across AngularJS frontend and Node.js backend

How can code be effectively shared between an AngularJS client and a Node.js server? After creating an AngularJS application, I now need to develop a RESTful server to provide data to the client. Some Angular services used on the client-side could also be ...

Encountered an issue while utilizing the repeat function: Uncaught RangeError - Maximum call stack size has been exceeded

Calling all experts! I'm in need of assistance. I encountered an error while using the repeat command. function repeat(s, n, d) { return --n ? s + (d || "") + repeat(s, n, d) : "" + s; } ...

Can static properties be integrated into a functional React component's representation?

ES6 introduces the ability to define a React Component as a function. Take for example the following component: class MyComponent extends React.Component { render() { <div>Hi</div> } } This same component can also be represented as ...

Is there a way to modify the text color when hovering over an image map?

I am facing an issue with my code. My goal is to change the text color (headline and subline text) from black to white. The default image contains 10 Hotspots, each with its own text. Upon hovering over a Hotspot, a new background-color (new image-map with ...

Obtain Attribute Value Using JQuery

I am trying to extract the value from this attribute element, but I am unsure of the correct way to do it. Can someone help me out? Here is the code snippet: <select name="Hello/1.0/TestWorld" size="1" disabled="disabled" ...

Tips for updating button appearance when clicked using React Bootstrap

Is there a way to add custom styling to a toggle button in React? I want the button to change color when selected, but the issue is that the color reverts back to default once the click is released. Can anyone assist me with this? Below is my React Compon ...

Error: The Node Express Server is unable to locate the requested resource at "/

const http = require("http"); const myApp= require('./myApp'); const portNumber = 8080; const myServer = http.createServer(myApp); myServer.listen(portNumber) ...

What is the best way to dynamically validate the fields and generate an array?

Currently in my Angular application, I've successfully implemented a pivot table using pivot.js. Now, I am faced with the task of loading all the indexes from elastic search whenever the user switches the index. Once the index is changed, the corresp ...

Choosing an element with JavaScript

var displayedImage = document.querySelector('.displayed-img'); var thumbBar = document.querySelector('.thumb-bar'); btn = document.querySelector('button'); var overlay = document.querySelector('.overlay'); /* Itera ...

Arranging routes in node.js like a pro

const express = require('express'); const router = express.Router(); router.use(function(req, res, next){ console.log(req.user) if(!req.user){ res.redirect('/login'); }else{ res.locals.username = req.user.us ...

updating react state based on filtered redux properties

Just starting out with react & redux and running into some issues with filtering insights (articles, case studies, reports). My goal is to filter by industry, but I'm struggling to update the state with the filtered insights. InsightsPage.js con ...

Hover over a div without affecting its anchor links

I wrote a basic function that reveals a hidden div .dida when hovering over another div .contacts $(document).on("mouseenter", ".contacts", function() { $(".dida").addClass("block") }) $(document).on("mouseleave", ".contacts", fun ...

Ensuring proper functionality of JQModal when displayed above an iframe with the usage of ?wmode=

Here's an interesting one... I'm currently working on a site with JQModal and everything seems to be functioning properly except for the fact that the iframe appears on top of the modal. An easy fix is to append ?wmode=opaque at the end of the ...