Giter VIP home page Giter VIP logo

Comments (2)

opensource21 avatar opensource21 commented on September 8, 2024

You can see a possible solution for the disable-problem at elisarver/selophane@3d191b3.
I think it's not relevant if the click is possible or not, because you can obviously click on every element on a screen, perhaps to check if nothing happens. On the other side if I choose select(option1) I expected that after that option1 is selected or I get an exception or at least a return value which shows me that nothing could be selected.

from selenium.

barancev avatar barancev commented on September 8, 2024

Current behavior matches W3C WebDriver standard [1] that describes a special case of click operation for 'option' elements. Selenium does not actually click it, it selects an option. So it allows to select an option if it is selectable but not clilckable. For example, Firefox allows to pick an option with style="display: none;" if you put focus to its 'select' parent and govern it with the keyboard.

But Firefox driver allows to select a disabled element, and it seems to be an issue, I've moved it to geckodriver tracker [2]

[1] https://w3c.github.io/webdriver/webdriver-spec.html#element-click
[2] mozilla/geckodriver#1107

from selenium.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.