Context click has no effect #125

Closed
jarib opened this Issue Dec 2, 2012 · 6 comments

Projects

None yet

7 participants

@jarib
jarib commented Dec 2, 2012

Example taken from the Ruby client specs:

require 'selenium/webdriver'

driver = Selenium::WebDriver.for :phantomjs
driver.get "data:text/html;content-type=utf-8,#{URI.escape DATA.read}"

input = driver.find_element(id: 'doubleClickField')
driver.mouse.context_click input
sleep 1
p input.attribute(:value) # => "InitialValue", expected "ContextClicked"

__END__
<html>
  <input id="doubleClickField" type="text" 
        onclick="document.getElementById('doubleClickField').value='Clicked';" 
        ondblclick="document.getElementById('doubleClickField').value='DoubleClicked';" 
        oncontextmenu="document.getElementById('doubleClickField').value='ContextClicked'; return false;" 
        value="InitialValue" />
</html>
@detro
Owner
detro commented Dec 3, 2012

This is a known issue actually.
I know it's a "bug" but not something I can action right now, as it's basically Qt doing us wrong here.

@the-shank

+1

@detro detro added the todo label May 27, 2014
@mgallagh

+1

@ianwalter

+1

@Artur- Artur- added a commit to Artur-/ghostdriver that referenced this issue Jan 9, 2016
@Artur- Artur- Send right click as a contextmenu event
Depends on ariya/phantomjs#13870

Fixes #125
89dbb92
@Artur- Artur- added a commit to Artur-/phantomjs that referenced this issue Jan 9, 2016
@Artur- Artur- Support contextmenu events using webpage.sendEvent('contextmenu')
Phantomjs issue
ariya#10688

Fixes #11429 by allowing to send a "contextmenu" event. Intentionally
does not map a "click" event using "right" button into contextmenu event
because this would be inconsistent with how browsers work.

Related issue in Ghostdriver:
detro/ghostdriver#125
d7680b6
@Artur- Artur- added a commit to Artur-/phantomjs that referenced this issue Jan 9, 2016
@Artur- Artur- Support contextmenu events using webpage.sendEvent('contextmenu')
Phantomjs issue
ariya#11429

Fixes #11429 by allowing to send a "contextmenu" event. Intentionally
does not map a "click" event using "right" button into contextmenu event
because this would be inconsistent with how browsers work.

Related issue in Ghostdriver:
detro/ghostdriver#125
e42c102
@Vitallium Vitallium added a commit to ariya/phantomjs that referenced this issue Jan 23, 2016
@Artur- @Vitallium Artur- + Vitallium Support contextmenu events using webpage.sendEvent('contextmenu')
Phantomjs issue
#11429

Fixes #11429 by allowing to send a "contextmenu" event. Intentionally
does not map a "click" event using "right" button into contextmenu event
because this would be inconsistent with how browsers work.

Related issue in Ghostdriver:
detro/ghostdriver#125
20d673b
@Artur-
Contributor
Artur- commented Jan 23, 2016

Support for contextclick is now in PhantomJS, so this only requires #472 to be merged

@detro detro closed this in #472 Feb 12, 2016
@igorshapiro igorshapiro added a commit to WisePricer/phantomjs that referenced this issue Sep 29, 2016
@Artur- @igorshapiro Artur- + igorshapiro Support contextmenu events using webpage.sendEvent('contextmenu')
Phantomjs issue
ariya#11429

Fixes #11429 by allowing to send a "contextmenu" event. Intentionally
does not map a "click" event using "right" button into contextmenu event
because this would be inconsistent with how browsers work.

Related issue in Ghostdriver:
detro/ghostdriver#125
7adde3b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment