Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to drag #91

Closed
zoechi opened this issue Jul 29, 2015 · 7 comments
Closed

How to drag #91

zoechi opened this issue Jul 29, 2015 · 7 comments

Comments

@zoechi
Copy link
Contributor

zoechi commented Jul 29, 2015

I tried

      WebElement startResizeHandle =  await driver.findElement(const By.cssSelector('#handle'));
      expect(startResizeHandle, isNotNull);
      await driver.mouse.moveTo(element: startResizeHandle);
      await driver.mouse.down(Mouse.left);
      await driver.mouse.moveTo(xOffset: 50, yOffset: 0);
      await driver.mouse.up(Mouse.left);

According to the highlighting the mouse seems to move correctly but no drag'n drop is happening. Should this work this way?

@DrMarcII
Copy link
Contributor

This should work, but DnD in WebDriver has always been fiddly. Which browser are you using?

@zoechi
Copy link
Contributor Author

zoechi commented Jul 29, 2015

Chrome 44 from selenium/node-chrome-debug:2.46.0, https://github.com/SeleniumHQ/docker-selenium

@zoechi zoechi closed this as completed Jul 29, 2015
@zoechi zoechi reopened this Jul 29, 2015
@DrMarcII
Copy link
Contributor

Hmm, Chrome is generally pretty good. Not sure what to suggest. You might have better luck asking people on Selenium mailing lists for help.

@zoechi
Copy link
Contributor Author

zoechi commented Jul 29, 2015

Thanks anyway!
You don't have a test or an example somewhere?
I'll try to build a simpler example myself. Maybe there is some limitations with custom elements or shadow DOM

@zoechi
Copy link
Contributor Author

zoechi commented Jul 30, 2015

This is a Chrome bug https://code.google.com/p/chromedriver/issues/detail?id=841
Works fine in Firefox

@zoechi
Copy link
Contributor Author

zoechi commented Aug 24, 2015

Shouldn't this

await driver.mouse.down(Mouse.left);
await driver.mouse.moveTo(xOffset: 50, yOffset: 0);
await driver.mouse.up(Mouse.left);

be sent as collection of actions in one request? It seems WebDriver.dart doesn't support actions yet. Is this planned?

@DrMarcII
Copy link
Contributor

AFAIK, none of the remote ends support actions yet (Marionette might I
guess, but I haven't tried it).

On Mon, Aug 24, 2015, 5:45 AM Günter Zöchbauer notifications@github.com
wrote:

Shouldn't this be sent as collection of actions? It seems WebDriver.dart
doesn't support actions
http://www.w3.org/TR/webdriver/#low-level-actions yet. Is this planned?


Reply to this email directly or view it on GitHub
#91 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants