Skip to content

t.dispatchEvent method #6103

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

Merged
merged 3 commits into from
Apr 8, 2021
Merged

t.dispatchEvent method #6103

merged 3 commits into from
Apr 8, 2021

Conversation

AlexKamaev
Copy link
Contributor

@AlexKamaev AlexKamaev commented Apr 1, 2021

t.dispatchEvent method
Dispatches an event over a specified webpage element.
Has the following params:

  • selector - Identifies the EventTarget element. (required)
  • eventName - The name of the event to be dispatched on the DOM element. (required)
  • options - The options which will be passed to EventConstructor. (optional)

For mouse/drag events - MouseEvent constructor is called
For input events (beforeinput, input) - InputEvent constructor is called
For keayboard events - KeyboardEvent constructor is called
For focus events - FocusEvent constructor is called
For pointer events - PointerEvent constructor is called

For any other events the CustomEvent constructor is called.

If the eventConstructor property is passed throuth the options, then the eventConstructor Ctor is called.

By default, events have bubbles and cancelable properties set to true.
For mouseevents - buttons property is set to 1 (left button)

the relatedTarget property for focus events is supported.
Complex events such as TouchEvent are supported only as CustomEvents

The feature is not supported in IE11

@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev changed the title dispatch event base t.dispatchEvent method Apr 2, 2021
@AlexKamaev AlexKamaev marked this pull request as ready for review April 2, 2021 09:19
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@@ -0,0 +1,93 @@
import hammerhead from '../deps/hammerhead';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rewrite all new files with TypeScript.

@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@AlexKamaev AlexKamaev closed this Apr 2, 2021
@AlexKamaev AlexKamaev reopened this Apr 2, 2021
@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 3, 2021
@AlexKamaev AlexKamaev reopened this Apr 3, 2021
@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@AlexKamaev AlexKamaev closed this Apr 3, 2021
@AlexKamaev AlexKamaev reopened this Apr 3, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@testcafe-build-bot
Copy link
Collaborator

@testcafe-build-bot
Copy link
Collaborator

@AndreyBelym AndreyBelym merged commit 19da6bb into DevExpress:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants