You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

DragDropUsingSeleniumJS

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

DragDropUsingSeleniumJS

Drag and Drop WebElements using JavaScript

0.0.0.1
Source
nugetNuGet
Version published
Maintainers
1
Created
Source

A DragDropUsingSeleniumJS package helps in Dragging and Dropping a WebElement

Usage:

  • Include the namespace "DragDropUsingSeleniumJS" Eg: using DragDropUsingSeleniumJS;

  • Create an object for DragDropUtility class. Eg: DragDropUtility dragDropUtlity = new DragDropUtility();

  • Call dragAndDropUsingJS method using the created object with WebDriver, SourceWebElement and TargetWebElement as mandatory parameters and SourceWebElement and TargetWebElement position as optional Eg: a. dragDropUtlity.dragAndDropUsingJS(driver, sourceWebElement, targetWebElement); --> Dragging the object by holding the center of the Source WebElement and dropping it on the center of Target WebElement b. dragDropUtlity.dragAndDropUsingJS(driver, sourceWebElement, targetWebElement, sourceWebElementPosition, targetWebElementPosition); --> Dragging the object by holding the center of the Source WebElement and dropping it on the center of Target WebElement

Following are the values accepted by sourceWebElementPosition and targetWebElementPosition 0 - Top_Left, 1 - Top, 2 - Top_Right, 3 - Left, 4 - Center, 5 - Right, 6 - Bottom_Left, 7 - Bottom, 8 - Bottom_Right

Keywords

Drag

FAQs

Package last updated on 24 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts