question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do we have access to actions from the WebDriverio API?

See original GitHub issue

I 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:open
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

6reactions
christian-bromanncommented, Feb 7, 2018

@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.

0reactions
wburgess-invisioncommented, Aug 29, 2018

Damn - just built out a custom drag and hit the same error. Thanks for digging that it’s not supported yet.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found