-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] fixed safari tests #12533
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
[py] fixed safari tests #12533
Conversation
What is raising |
@titusfortner , when we try to operate on a list box which is disabled, in chrome below exception is raised.
In case of Safari, no exception is raised, program execution completes without any exceptions or any messages. But yes, since the list box is disabled nothing gets selected. I think it is better to raise |
Oh, support classes are special, but we should know why it isn't getting that error before just skipping the tests |
My understanding is that the error should be raised by safaridriver itself and nothing to do with python bindings. |
These tests are all about describing intended vs actual behavior. The xfail message needs to reflect how actual behavior differs from intended. This is the support module where we are working with opinionated behavior. The opinion we are enforcing is that if the user wants to select a disabled option with the Select class, it should throw an error instead of ignoring it. So we check the status and throw the error in the bindings. Is Safari reporting that the element is not disabled when it is? Why isn't it getting the error that we want it to have? |
I was debugging this issue, and found that in function
|
So that needs to be the message in xfail, "options incorrectly reported as enabled" |
Yes, I have changed it and pushed commit. |
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Fixed Select class and Launcher tests for Safari.
Motivation and Context
NotImplementedError
while trying to select item from a list box which is disabled. But Safari doesn't. I have marked all those tests asxfail_safari
.service
object toWebDriver
Types of changes
Checklist