Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SafariDriver] Unable to Right Click Element using Actions #3732

Closed
chrisumitratech opened this issue Mar 29, 2017 · 2 comments
Closed

[SafariDriver] Unable to Right Click Element using Actions #3732

chrisumitratech opened this issue Mar 29, 2017 · 2 comments

Comments

@chrisumitratech
Copy link

Meta -

OS:
OSX 10.11.6
Selenium Version:
2.53.0
Browser:
Safari

Browser Version:
10.0

Expected Behavior -

Should right click element being passed into method. In my application a context menu for the Element should appear.

Actual Behavior -

Get the following error from the SafariWebDriver running on the Agent:

Exception thrown
org.openqa.selenium.WebDriverException: Unknown command: {"id":"jre8mp1j66q6","name":"mouseMoveTo","parameters":{"element":":wdc:1490790363654"}} (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 5 milliseconds
Build info: version: '2.53.0', revision: '35ae25b', time: '2016-03-15 17:00:58'

Driver info: org.openqa.selenium.safari.SafariDriver
Capabilities [{browserName=safari, takesScreenshot=true, javascriptEnabled=true, version=10.0, cssSelectorsEnabled=true, platform=MAC, secureSsl=true}]

Steps to reproduce -

I'm using the Selenium Grid plugin on Jenkins to control a SSH Slave on OSX and getting a RemoteWebDriver object.

I have tried both of the following options but nothing happens and get an error from the RemoteWebDriver:

var action = new Actions(WebDriver);
action.ContextClick(webElement.Element).Perform();

and

var action = new Actions(WebDriver);
action.KeyDown(Keys.Control).Click(webElement.Element).KeyUp(Keys.Control).Build().Perform();

@jleyba
Copy link
Contributor

jleyba commented Apr 1, 2017

This is because you are using the legacy, extension-based SafariDriver which is no longer supported (and it never supported actions). You need to upgrade to Apple's SafariDriver implementation, available for Safari 10+

@jleyba jleyba closed this as completed Apr 1, 2017
@egemenceylan
Copy link

egemenceylan commented Jun 6, 2017

How can we implement Apple's new safari driver to our project ?

I have found following link, but i don't know that how can i use it.

https://github.com/SeleniumHQ/selenium/tree/selenium-3.0.0-beta-4/dotnet

@lock lock bot locked and limited conversation to collaborators Aug 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants