Skip to content

Programmatically "Tap" element from the console #116

Description

@edwilliams

Is it possible to simulate a "Tap" from the console?

If an element is given a synthetic onClick event in React, the element itself can be identified in the DOM from the console in DevTools and a 'click' event simulated. For example (using jQuery for ease of demonstration)

$('[data-qa="some-element"]').click()

Is an equivalent event possible form the console?

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions