electron-userland / electron-userland/spectron
Click (or other Webdriver actions) not available on returned elements
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 225
- PR merge metrics
- No merged PRs in 30d
Description
click() (and all other webdriver methods) are not available on a returned element. Otherwise Webdriver seems to be working properly. Am I doing something wrong?
Note I'm not using `APP.client.click('button')` because I want to click the SECOND button. (Also, I'm having all sorts of problems getting xPath or CSS selectors to directly access the second button to work.)
```
const btns = await APP.client.$$('button')
console.log(JSON.stringify(Object.getOwnPropertyNames(btns[0])))
["ELEMENT","element-6066-11e4-a52e-4f735466cecf","value","selector","index"]
btns[1].click()
TypeError: btns[1].click is not a function
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the reported APP.client.$$('button') example and inspect how returned elements are represented and exposed through the Webdriver client. Compare the returned element API with the expected Webdriver actions, then verify that selecting the second button has a supported, testable interaction path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, javascript
- Domain
- desktop, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100