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

UnsupportedOperationError WebElement.isDisplayed #3506

Closed
zenonwch opened this issue Feb 14, 2017 · 7 comments
Closed

UnsupportedOperationError WebElement.isDisplayed #3506

zenonwch opened this issue Feb 14, 2017 · 7 comments

Comments

@zenonwch
Copy link

Meta -

OS: macOS Sierra 10.12.3
Selenium Version: selenium-webdriver@3.0.1
Browser: Safari 10.0.3

Expected Behavior -

WebElement.isDisplayed() should return true or false

Actual Behavior -

UnsupportedOperationError WebElement.isDisplayed()

Steps to reproduce -

driver.findElement(el).isDisplayed();

P.S.:
If the issue is with Safari, only Safari 10+ is supported. Please log any Safari issue with Apple:
https://bugreport.apple.com/ - empty bugtracker is opened :(

@lmtierney
Copy link
Member

This is a known issue with current safaridriver, it is fixed if you use the safridriver from Safari Technology Preview. The bug tracker is empty because it only shows ones that you have created.

@zenonwch
Copy link
Author

Good news.
But how can I ask selenium-webdriver to run Technology Preview?

@lmtierney
Copy link
Member

That would depend on the language bindings you're using. You should be able to pass the executable path somewhere and it would be /Applications/Safari Technology Preview/Contents/MacOS/safaridriver. Some language bindings allow a flag to automatically use the tech preview safaridriver.

@lukeis
Copy link
Member

lukeis commented Feb 14, 2017

closing as we don't track safari driver issues here anymore.

@lukeis lukeis closed this as completed Feb 14, 2017
@zenonwch
Copy link
Author

But where users can see all bugs related to safari driver?
https://bugreport.apple.com/ - shows only my issues.

@lmtierney
Copy link
Member

Apple does not allow you to see other users' bugs, only your own. If you raise one then you can track it; but like I said this is a known issue and it has already been fixed in later versions so it would just be closed anyway.

@anthonyliuhao
Copy link

anthonyliuhao commented Mar 22, 2017

For those who have the same question, here is how I got Selenium WebDriver to run a test using Safari Technology Preview in Python:
driver = webdriver.Safari(port=0, executable_path="/Applications/Safari Technology Preview.app/Contents/MacOS/safaridriver")

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

4 participants