This repository has been archived by the owner on Jul 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: LEAP-439: Add pixel waiting functions in ImageView (#25)
* Add pixel waiting functions in ImageView Two new functions, waitForPixel and waitForPixelRelative, were added. These functions allow the system to wait for a specific pixel color to appear. The waitForPixel waits for an absolute pixel position, while the waitForPixelRelative waits for a relative pixel position based on the element's bounding box. * Refactor `waitForPixel` method in ImageView This commit simplifies the `waitForPixel` method in `ImageView`. The changes improve the code readability without changing its functionality. The setTimeout mechanism for pixel color verification is replaced with a more straightforward recursive promise based approach.
- Loading branch information