nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.75k stars 1.3k forks source link

Add selector and error line for "staleElementReferenceError" #4214

Open pujagani opened 1 month ago

pujagani commented 1 month ago

Fixes #4184

Adds selector and error line with proper formatting for "StaleElementReferenceError" and other errors that might occur when working with elements.

Since this updates the logs displayed, adding a test for it is hard. Instead, the PR adds an example to showcase the fix.

Thanks in advance for your contribution. Please follow the below steps in submitting a pull request, as it will help us with reviewing it quicker.

The changes now display the logs as follows: Screenshot 2024-05-30 at 8 12 00 PM

CLAassistant commented 1 month ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

github-actions[bot] commented 1 month ago

Status