Selenium with C# 30 - Actions class mouse drag and drop to offset method

Опубликовано: 29 Сентябрь 2024
на канале: Ankpro Training
5,535
16

Actions class mouse drag and drop to offset method
Like our facebook page www.facebook.com/ankprotraining

Action class DragAndDropToOffset method :
DragAndDropToOffset(IWebElement source, int offsetX, int offsetY)- Performs a drag-and-drop operation on one element to a specified offset.

Possible Interview Questions on actions class drag and drop to offset method:


How to use selenium actions class DragAndDropToOffset method?

Code :

actions
.DragAndDropToOffset(driver.FindElement(By.Id("draggable")), 150,20)
.Build()
.Perform();