Method: Selenium::Client::GeneratedDriver#context_menu

Defined in:
lib/selenium/client/legacy_driver.rb

#context_menu(locator) ⇒ 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

[View source]

162
163
164
# File 'lib/selenium/client/legacy_driver.rb', line 162

def context_menu(locator)
    remote_control_command("contextMenu", [locator,])
end