Element.dragAndDrop(), Driver.dragAndDrop(), Element.rect() Implemented#59
Merged
vimscientist69 merged 5 commits intomasterfrom Aug 14, 2025
Merged
Conversation
…quest to webdriver api Code is untested. Code can compile. Refactored action types from double click request source file to its own source file
…lement and driver methods Integration test for `Element.dragAndDrop()` implemented and passed as expected. `dragAndDrop()` webdriver method is a dynamic method that can either use javascript when element is draggable to drag element and fire off javascript event listeners, or use `Element.dragAndDrop()` when element is not draggable to use webdriver actions API instead.
…egation test, passed as expected
…tegration test for drag and drop element to another element method
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reason
Reason for creating this pull request: resolves #58
Tech Details List
dragAndDrop(to: Element)method onElement, that drags one element to another by first moving cursor toself, click and hold left mouse button while moving the cursor toto, and then releasing the left mouse button.rect()method onElementwith integration tests, to move the source element to the middle of the target element.Driver.dragAndDrop()method; when the source element is draggable, use JavaScript to drag the element to the target element - so that JavaScript event listeners gets triggered, else use theElement.dragAndDrop(), a method that uses WebDriver Actions API mouse actions.Tasks:
dragAndDrop(to: Element)method onElement, that drags one element to another by first moving cursor toself, click and hold left mouse button while moving the cursor toto, and then releasing the left mouse button.rect()method onElementwith integration tests, to move the source element to the middle of the target element.Driver.dragAndDrop()method; when the source element is draggable, use JavaScript to drag the element to the target element - so that JavaScript event listeners gets triggered, else use theElement.dragAndDrop(), a method that uses WebDriver Actions API mouse actions.Un-important tasks:
Links:
ISSUE-58
closes/resolves #58
Testing
Steps:
TESTING-QAOutput:
Testing QA
Make sure to start required services with
npm run compose:build-and-up