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

Enhancement: Please add rightClick and doubleClick methods to WebElement #161

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

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 161

My Dojo-based app makes extensive use of right-click context menus and
double-click actions.  The only way to test these in WebDriver that I can
see now is to use direct JavaScript.  It seems better, and natural, to
extend WebElement with new rightClick and doubleClick methods.

Reported by fgamador on 2009-02-20 17:37:05

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

P.S. Sorry for adding this as a defect, but the "New Issue" link doesn't provide a
way to add enhancements, at least not that I saw.

Reported by fgamador on 2009-02-20 17:39:11

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

And come to think of it, it'd be great to have other mouse operations as well. 
"hover" is needed to navigate hierarchical menus, and "drag" (on the source element)
and "drop" (on the target element) are also needed for testing rich internet apps.

Reported by fgamador on 2009-02-20 23:41:04

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The issue for "hover" is issue #170. Drag and drop is supported by casting the
existing webelement to a "RenderedWebElement" in your java code.

Reported by simon.m.stewart on 2009-03-22 18:52:09

  • Labels added: Type-Enhancement, Browser-All
  • Labels removed: Type-Defect

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Adding to the next planned release

Reported by simon.m.stewart on 2009-05-05 12:59:40

  • Labels added: NextRelease

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

I see there was a release on Oct. 5 without a right-click option (that I could find).
Is this a possibility for the next release? 

Reported by gretchie.moran on 2009-10-13 14:34:25

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

We're working on an interactions API that will allow a little more flexibility. I think

that right click will be featured in that.

Reported by simon.m.stewart on 2009-10-13 15:19:30

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Any progress on this issue? We need this to test a GWT application that has heavy use
of the contextual menu.

Reported by wakaleo on 2010-07-08 11:34:01

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

What is the status of this issue? Is there any workaround to simulate a right click?

Reported by Zihao.Yu on 2010-09-09 15:46:41

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hey guys, 

Any progress on this ??

Reported by amjadsaleem on 2010-12-22 11:36:53

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Hi there.

Any idea about when the contextMenu command will be available with WebDriver ? 2.0b3
still does not support this operation on firefox.

Bye !

Reported by damien.feugas on 2011-03-26 12:55:54

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Checked version 2.5, following works on MSIE but is interpreted as ordinary click in
Firefox:
  driver.get("http://developer.yahoo.com/yui/examples/menu/contextmenu_source.html");
  WebElement element = driver.findElement(By.tagName("img"));
  Actions builder = new Actions(driver);
  Action rClick = builder.contextClick(element).build();
  rClick.perform();

Reported by rostislav.matl on 2011-09-12 15:17:13

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

How to select an option from the context menu?

Reported by kiranvysyaraju on 2013-11-12 09:56:27

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

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

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 3, 2016
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