Selenium Python Tutorial #39 - How to Perform Drag and Drop in Selenium

preview_player
Показать описание
In this Selenium Python Tutorial, we will learn how to perform drag and drop in selenium python. ActionChains class in Python Selenium API provide methods which can be used to automate low level interactions such as mouse movements, mouse button actions, key press, and context menu interactions. We will be using ActionChains class to perform drag and drop in Selenium Automation.

🔸 drag_and_drop(source, target): Holds down the left mouse button on the source element,
then moves to the target element and releases the mouse button.
Args:
source: The element to mouse down.
target: The element to mouse up.

🔸 drag_and_drop_by_offset(source, xoffset, yoffset): Holds down the left mouse button on the source element, then moves to the target offset and releases the mouse button.
Args:
source: The element to mouse down.
xoffset: X offset to move to.
yoffset: Y offset to move to.

Help me in spreading the knowledge, please hit LIKE, SHARE, and SUBSCRIBE for the latest tutorials. More tutorial playlists below:

🔶 ENROL IN MANY FREE TRAININGS ON RCV ACADEMY PORTAL 🔶

🔶 FOLLOW US ON TWITTER 🔶

🔶 LIKE US ON FACEBOOK 🔶

🔶 OUR TUTORIAL WEBSITES 🔶

🔶 GET MY TRAININGS ON UDEMY 🔶

#SeleniumPythonTutorial #PythonSelenium #SeleniumPython #PythonSeleniumTutorial #SeleniumWebdriver #TestAutomation #SoftwareTesting #RcvAcademy #SoftwareTestingMentor

Join this channel to get access to perks:
Рекомендации по теме
Комментарии
Автор

Sir, started watching ur videoswith hope, later it creates interests followed by addicted dont know next level
Thank you so much for your efforts towards us
am from a small village in andhra pradesh

sreenu
Автор

Please can you help me with the extension you have used to fetch coordinates ?

pavankumark
Автор

Excellent tutorial.
But, how can I know the coordinates of a element by its id o class name? It is possible?

diegomedina
Автор

@Software Testing Mentor

which addon use for locate X, Y co ordinate

prasadbhagwat
Автор

selectors hub is not freely available now, is there any other alternative?

atulsamant
Автор

Sir, please provide a video for upload a multiple files in selenium with Python for any website

vipinvarshney
Автор

thnaks, how can drag files?? haha i wonder

ryjviwm