Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

User Interaction API #244

Closed
lukeis opened this issue Mar 2, 2016 · 26 comments
Closed

User Interaction API #244

lukeis opened this issue Mar 2, 2016 · 26 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 244

The API for interacting with elements is limited to the common cases. It 
would be useful to have an API that allows us to express user interactions 
more precisely (eg. allowing you to click on an element, hold down the shift 
key, click on three more, and then drag the selected elements on to another)

Reported by simon.m.stewart on 2009-09-25 08:56:54

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 161 has been merged into this issue.

Reported by dawagner on 2010-01-11 16:14:51

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 409 has been merged into this issue.

Reported by jari.bakken on 2010-03-06 23:08:08

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Are there any workarounds for this, specifically firing a doubleclick event? Thanks.

Reported by jonm42 on 2010-03-11 21:42:02

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

You can use js like this on firefox:

  var dblClickEvent = document.createEvent("MouseEvents");
  dblClickEvent.initMouseEvent("dblclick", true, true, window, 0, 0, 0, 0, 0, false,
false, false, false, 0, null); 
  var element = $('mybuttonid');
  element.dispatchEvent(dblClickEvent);

Reported by saimonmoore on 2010-03-11 22:49:25

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2010-06-17 00:44:54

  • Labels added: Component-WebDriver

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is there any workaround for a right click?

Reported by Zihao.Yu on 2010-09-09 15:50:11

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by simon.m.stewart on 2010-09-09 22:06:10

  • Labels added: NextRelease

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Given that I want this release out soon and Eran's still making it work right on the
branch, dropping from a6

Reported by simon.m.stewart on 2010-09-24 12:01:06

  • Labels removed: NextRelease

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 838 has been merged into this issue.

Reported by jari.bakken on 2011-01-27 13:27:46

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Issue 821 has been merged into this issue.

Reported by jari.bakken on 2011-01-27 13:48:19

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

What is the status of this issue? 
Still no Drag&Drop in Beta 2 for FF and Chrome.

Reported by roland.schaer on 2011-02-24 08:27:27

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Seems Eran made some progresss for firefox, see r11973 and r12032. From what I can tell
"mouseMoveTo" was the missing piece for d'n'd and doubleclicking using the action builders,
but I'm really new to webdriver. Not sure about other drivers.

Reported by christoph.neuroth on 2011-05-08 09:06:18

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is there any roadmap for what browsers will support the Actions api for the 2.0 release?

Reported by mark.haseltine on 2011-05-24 14:30:01

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by jari.bakken on 2011-06-05 20:16:11

  • Labels added: Type-Enhancement
  • Labels removed: Type-Defect

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

With the Actions class, this issue can now be considered closed, though there are still
a few outstanding implementation details.

Reported by simon.m.stewart on 2011-06-28 02:12:02

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Is the fix part of the rc3 release? Has this been tested with FF 3.6? Or is there an
official browser support list for the double click to work using the Actions class?

Reported by paramag on 2011-07-07 21:57:50

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

We're working on a nice way of presenting what exactly works where. Stay tuned.

Reported by jari.bakken on 2011-07-07 22:01:52

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

http://technoblaster.wordpress.com/2011/07/08/selenium-webdriver-dblclick-on-gxt-grid/

Reported by paramag on 2011-07-08 08:41:49

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Can someone tell me when will mouse right click function will be avaible?

Reported by m.majcheee on 2011-07-19 12:21:34

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Andreas is working on it. Stay tuned!

Reported by eran.mes on 2011-08-02 18:20:35

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The solution described at http://technoblaster.wordpress.com/2011/07/08/selenium-webdriver-dblclick-on-gxt-grid/
worked fine with FF 4 + Selenium 2.0b2. But Selenium 2.0b2 did not work at all with
FF5, so after upgrading to 2.0rc3 Selenium now works with FireFox again, except for
the double click solution..

Eagerly awaiting a double click solution that works with FF 5, regardless if it's via
Actions API or JavaScript..

Reported by slindhom on 2011-08-08 13:33:31

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I'm looking to use the right click to access a context menu in my web application that
is not available through JavaScript.  I'm using the IE driver in the .Net assembly.

Reported by mfurmaniuk on 2011-09-07 15:13:33

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Try

IWebDriver driver = ...
...
IWebElement element = driver.FindElement(...);
Actions actionProvider = new Actions(driver);
IAction contextClick = actionProvider.ContextClick(element).Build();
contextClick.Perform();

for double click use actionProvider.DoubleClick(...

Reported by ahaas@google.com on 2011-09-07 15:30:03

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I really need either enhanced standard IWebElement functions, or Advanced user interactions
working for IE.

Reported by andr.simonov on 2011-09-30 15:00:45

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

IWebDriver driver = ...
...
IWebElement element = driver.FindElement(...);
Actions actionProvider = new Actions(driver);
IAction contextClick = actionProvider.ContextClick(element).Build();
contextClick.Perform();

how to convert this code to C#

Reported by sunny_ssn_shine@hotmail.com on 2013-04-23 08:13:08

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 17:47:53

  • Labels added: Restrict-AddIssueComment-Commit

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

No branches or pull requests

1 participant