chenglou / chenglou/node-huxley

Use xpath instead of coordinates

Open
#79 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
358
Forks
24
PR merge metrics
No merged PRs in 30d

Description

What do you think about specifying an xpath instead of coordinates for a click action? This is probably more useful because I don't want to re-record my tests when I changed the location of a button.

With [`document.evaluate()`](https://developer.mozilla.org/en-US/docs/Web/API/document.evaluate) you're able to get a reference of the DOM element.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the click-action implementation and any tests for coordinate-based clicks; the issue does not name files or entry points. Read the linked document.evaluate() API and determine how an XPath-based click would fit the existing test model, with completion meaning a button can be located by XPath after its screen position changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.