Skip to content

Current "key*" methods are just emulating JS events #139

Open

Description

@aik099

Current "key*" methods are just emulating JS events instead of actually pressing corresponding keys. I recommend using dedicated WebDriver calls for that instead.

Though we need to add test to Mink to ensure that fired JS events are still fired as they should.

Activity

  1. stof commented on Jan 4, 2017

    @stof
    Member

    keyup and keydown are hard to use right, because they are low-level actions, and must be applied in an order matching the behavior of a user action.

    Btw, the W3C webdriver spec defines only 2 actions: keyDown and keyUp. There is a no keypress action here (browsers may trigger a keypress event when processing a keyDown action, if they dispatch such an event in normal usage, but it is not a separate action.
    So I don't know whether these methods are really usable as is in the Mink API

  2. aik099 commented on Jan 4, 2017

    @aik099
    MemberAuthor

    Then we'll just update keyDown and keyUp methods we have to use WebDriver API and keep keyPress method intact.

  3. usmonster commented on Sep 7, 2017

    @usmonster

    Hello! What's the status of this? It's very much needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions