Do we have access to actions from the WebDriverio API?
See original GitHub issueI am unable to drag and make a selection, with something like this:
await this.app.client.moveToObject(Element, 50, 50);
await this.app.client.buttonDown();
await this.app.client.moveToObject(Element, 200, 50);
await this.app.client.buttonUp();
The cursor moves but the selection isn’t created. So, it turns out that buttonUp and buttonDown are depreciated in WebDriverIO. It appears that they have been recently replaced with app.client.actions().
When I try to use actions I get a typescript error:
TypeError: this.app.client.actions is not a function
Are actions exposed in Spectron or are the typings all wrong? Ta…
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
action - WebdriverIO
The action command is a low-level interface for providing virtualized device input actions to the web browser.
Read more >Do we have access to actions from the WebDriverio API? #260
When I try to use actions I get a typescript error: TypeError: this.app.client.actions is not a function. Are actions exposed in Spectron or ......
Read more >UI Automation with WebdriverIO v7
WebdriverIO is a custom implementation of Selenium's WebDriver API. It is written in JavaScript, runs on Node, and provides a powerful framework for...
Read more >Part8: WebdriverIO with TypeScript - E2E Test: API POST Call
webdriverio #typescript #cucumber #nodejs #beginners #bddframework #wdio #async #wdio7 #supertest #webdriveriocucumberIn this video, We will ...
Read more >WebDriver - W3C
10.1 Navigate To; 10.2 Get Current URL; 10.3 Back; 10.4 Forward ... no requirements are made upon their exposed user-facing API.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jadams760 right, this is because it hasn’t landed in Chromedriver yet. I believe the Chromium team is working on getting this out asap. However this issue can neither be fixed in WebdriverIO nor in Spectron. We just need to wait until the WebDriver spec compatibility has improved.
Damn - just built out a custom drag and hit the same error. Thanks for digging that it’s not supported yet.