Method: Selenium::Client::GeneratedDriver#context_menu_at
- Defined in:
- lib/selenium/client/legacy_driver.rb
#context_menu_at(locator, coordString) ⇒ Object
Simulates opening the context menu for the specified element (as might happen if the user “right-clicked” on the element).
‘locator’ is an element locator ‘coordString’ is specifies the x,y position (i.e. - 10,20) of the mouse event relative to the element returned by the locator.
193 194 195 |
# File 'lib/selenium/client/legacy_driver.rb', line 193 def (locator,coordString) remote_control_command("contextMenuAt", [locator,coordString,]) end |