[Nightwatch] Add a command to wait for an element to be re-rendered

Created on 22 March 2025, about 2 months ago

Problem/Motivation

When writing Nightwatch tests, pretty often when executing an action (button click, select an option in a dropdown select, etc) some part of the page gets refreshed, and we need to somehow wait for the refresh to be finished.

And, actually, it is pretty tricky to implement, excluding the simplest but slow solutions like ".pause(5000)!

Proposed resolution

Would be good to implement a Nightwatch command that checks the element's internal id (browser id) and waits for this element to disappear, and a new element (with the new id) to appear instead.

Feature request
Status

Active

Version

1.5

Component

Nightwatch.js Commands

Created by

🇦🇲Armenia murz Yerevan, Armenia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024