Protractor Browser Instance Failure

We have encountered an issue with our UI suite failing in Chrome during the login process. Initially, we thought it might be due to upgrading to Chrome 79, as the problems arose simultaneously. Interestingly, the login functionality still works smoothly in Firefox. Here is a snippet of our current code:

await this.loginButton.click()

About six months ago, we noticed that the promise stopped returning. Removing the await keyword resulted in:

this.loginButton.click()

This change led to a StaleElementReferenceError. A workaround using browser actions seemed to function, although not very elegantly:

await browser.actions().mouseMove(this.loginButton).perform();
browser.actions().click().perform();

However, clicking the login button caused Protractor's browser instance to become unresponsive immediately. None of the typical methods like frameSwap(), get(), or even restarting the instance with browser.restart() seem to work. The execution gets stuck, and these functions do not return any results.

Interestingly, logging in using a cookie bypassing the actual login page did not result in crashing the browser instance. This suggests that the crash may be triggered by the login action itself, though the cause remains unclear.

Moreover, around the same time we started experiencing this login issue, another error, NoSuchWindowError, began to surface while using browser waits:

await browser.wait(protractor.ExpectedConditions.elementToBeClickable(targetElement)

I suspect that these two errors might be linked, but my searches on the internet yielded no relevant information.

Software versions being used:

Chrome: 79-80

Protractor: 5.4.2

webdriver-manager 12.1.7

Any help or insights you can provide would be greatly appreciated. Thank you in advance.

Answer №1

Luckily, the problem has been resolved with the recent launch of Chrome 83.

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

Customize your Loopback 4 OpenAPI with NSWAG by making filters optional and specifying data types

I am encountering an issue with the Loopback 4 filter on the generated endpoints being marked as required in my Nswag typescript file. I need it to be optional, but I am struggling to locate where this requirement is originating from. The endpoint from my ...

Do Angular 2 component getters get reevaluated with each update?

What advantages do getters offer compared to attributes initialized using ngOnInit? ...

Retrieve user details from a NextJS application following a successful Keycloak authentication on a Kubernetes cluster

I've been attempting to retrieve the authenticated user information in my NextJS app after being redirected to it following a successful Keycloak login on a different tab located at localhost:8080/auth. The ingress (entry point) is responsible for ch ...

Utilizing Selenium WebDriver with Ruby version 1.8.7

Is there a way to update the homepage that opens when launching a new browser? I am using an older version of selenium-webdriver, which opens a blank page. Unfortunately, I cannot utilize this feature as the website I am working on is running on 1.8.7. T ...

The XPath for the element that comes before a specific text

Looking for the XPath of the following code snippet: <a class="account-name" long-text="Sample Text" ng-click="accountClick(account)" ng-href="sample URL" href="sample URL1"> <span>Plan Name</span></a> I attempted this: //span[te ...

No issues raised by Typescript/tslint regarding this in arrow function

After making some creative adjustments, this is what I came up with: const TopBar = () => ( <Button onPress={this.onPress} // No errors shown /> ) Although all my other rules in tslint.json are functioning properly. Is there a way to ma ...

Unexpected unhandled_exception_processor in Google Chrome

I keep encountering a strange uncaught exception handler in Google Chrome. After updating all follow buttons to download JavaScript asynchronously, I noticed an error in the content.js file mentioned in the exception message which advises against polluting ...

Package.json file is not included in Typescript

Each time I execute tsc, it converts the files to JS format successfully, except for package.json. I want this file included in my output directory. Currently, my tsconfig.json looks like this: { "exclude": ["node_modules"], "compilerOptions": { " ...

What causes Selenium tests to run so slowly?

I am currently developing a web scraper that is designed to download images in a completely legal manner. However, I have encountered a problem during the execution of the script. In certain instances, particularly after a page has finished loading, there ...

Dealing with the error: "Error in checking the expression as it has been altered"

I have a dialog form where users can add new projects. I want to prevent the save buttons from being enabled until all required fields are filled in correctly. I have an isValid() function that handles this validation and it appears to be working properly. ...

As I was employing Appium Inspector to automate my tests, the application unexpectedly crashed right when I reached the login process

While trying to automate my test cases using Appium Inspector on Mac OS connected to a real Android device, I am facing an issue. After logging in to the app, a white screen appears and the app crashes. Oddly enough, when I perform the same action manual ...

Is it necessary to specify the inputs property when defining an Angular @Component?

While exploring the Angular Material Button code, I came across something interesting in the @Component section - a declared inputs property. The description indicates that this is a list of class property names to data-bind as component inputs. It seems ...

Promise rejection not handled: The play() function was unsuccessful as it requires the user to interact with the document beforehand

After upgrading my application from Angular 10 to 11, I encountered an error while running unit tests. The error causes the tests to terminate, but strangely, sometimes they run without any issues. Does anyone have suggestions on how to resolve this issue? ...

Is there a way to obtain a unique response in TestCafe RequestMock?

With Testcafe, I have the capability to simulate the response of a request successfully. I am interested in setting up a caching system for all GET/Ajax requests. The current setup functions properly when the URL is already cached, but it fails to prov ...

What is the best way to run a Selenium web driver script continuously for 24 hours a day?

I am interested in running a selenium web driver script 24/7 on the cloud to automate an Instagram bot without the need to constantly open Chrome and keep PyCharm running all the time. Does anyone have suggestions or solutions for achieving this? from se ...

Can you help me understand the significance of this error message: "stale element reference: element is not attached to the page

Encountering an issue with my C# application while using Selenium web driver. The error message that I receive is as follows: OpenQA.Selenium.StaleElementReferenceException: stale element reference: element is not attached to the page document This ...

Errors encountered when using TypeScript with destructured variables and props not being recognized

I have a function that returns data. The object is structured with properties such as headerMenu, page, content, and footer. These properties are defined in DataProps interface. When I try to destructure the data object using the line: const { headerMenu, ...

The source files are expected to be contained within the 'rootDir' directory, which is not located at 'c:/Users/hasit/Desktop/typescript/src'

Can someone assist me with separating the Src folder and public folder in my project? When I try to do it in the tsconfig.json file, I encounter this error: "'rootDir' is expected to contain all source files." I have followed instructions from a ...

Are there any alternatives to ui-ace specifically designed for Angular 2?

I am currently working on an Angular2 project and I'm looking to display my JSON data in an editor. Previously, while working with AngularJS, I was able to achieve this using ui-ace. Here is an example of how I did it: <textarea ui-ace="{ us ...

The issue with anchor links not functioning correctly in Chrome's desktop browser has been identified

I am interested in utilizing the greenfair CSS template available at this link. However, I have encountered an issue where the anchor links in the navbar do not work properly in Chrome (they function correctly in Firefox and IE). How can I resolve this pro ...