Actions Class In Selenium : MouseMovement || Right Click || Drag & Drop

  Рет қаралды 59,882

Naveen AutomationLabs

Naveen AutomationLabs

Күн бұрын

In this video, we will learn about Actions class in Selenium. It is used to perform all user actions like:
1. Drag and Drop
2. Right Click
3. Move To Element
4. Release
5. Click and Hold
~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
WebServices API Automation Tutorials:
vimeo.com/onde... Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:
www.youtube.co...
Follow me on my Facebook Page:
/ naveenqtpexpert
Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:
t.me/joinchat/...
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom... ➡️Get Our Courses✔️
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
Java & Selenium Course: www.naveenautom...
API Course: www.naveenautom...
-------------------------------
✔️SOCIAL NETWORKS
Facebook: / naveenqtpexpert
Twitter: / naveenkhunteta
Blog: www.naveenautom...
--------------------------------
Support My Channel✔️Or Buy Me A Coffee
Paypal: paypal.me/nave...
Google Pay: naveenanimation20@gmail.com
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة

Пікірлер: 40
@monalisabarik9795
@monalisabarik9795 4 жыл бұрын
The best thing in ur every videos that u write ur own xpath , so simultaneously one is learning the topic as well as xpath..
@naveenautomationlabs
@naveenautomationlabs 4 жыл бұрын
Thanks for watching :)
@anilrautela5260
@anilrautela5260 3 жыл бұрын
At 36:03, for locator of Copy, can use of following CSS ul.context-menu-list.context-menu-root>li:nth-of-type(3) Thanks, Naveen for your XPath and CSS session.
@trahamatrah8250
@trahamatrah8250 3 жыл бұрын
Really a very comprehensive video. Also appreciate the part that your content and methodology of teaching is concise and crisp. Also the programs are aimed in cultivating a deeper understanding and integration of concepts in java and selenium. Hats off to you sir!
@arpitverma9851
@arpitverma9851 6 жыл бұрын
it was great to see and I have learned lots of thing from your videos. You’re doing a great job. Thanks for making learning easier for us. 👍
@seshadrisrinivasan238
@seshadrisrinivasan238 6 жыл бұрын
Hi Naveen, just curious why arent we using the draganddrop method available with the actions class...
@sayantanimukherjee9722
@sayantanimukherjee9722 2 жыл бұрын
Hi Naveen…thank you once again for the great content you have created..have one query:::: 1. Perform() ->it implicitly calls build() method followed by perform() So. in that case, do we need to explicitly call the build () before performing any mouse actions?
@priyankabhosale7609
@priyankabhosale7609 3 жыл бұрын
Very helpful Naveen Sir !!!! :)
@ankitlohia1710
@ankitlohia1710 6 жыл бұрын
H naveen... Nice information... what is the tool u are using to. get li/ui info on mouse hover..
@swagatnayak3451
@swagatnayak3451 3 жыл бұрын
@Naveen - Can you take a session of mouse wheel operation for scroll
@sahilshaikh7016
@sahilshaikh7016 2 жыл бұрын
@Naveen automation labs , please let me know which java topics are important for learning selenium
@marinamelkonyan5260
@marinamelkonyan5260 4 жыл бұрын
Naveen, thanks a lot!!!
@santhoshk5157
@santhoshk5157 6 жыл бұрын
nice Sir.. thank you for the video..
@sruthibhagavatula2450
@sruthibhagavatula2450 3 жыл бұрын
Naveen in the cssSelector we are using . to use class name. What if we have multiple results for the same class name?
@naveenautomationlabs
@naveenautomationlabs 3 жыл бұрын
Then we don't use that css selector.
@sruthibhagavatula2450
@sruthibhagavatula2450 3 жыл бұрын
@@naveenautomationlabs then how can we choose css selector in this case? Because in xpath we need to find something unique and the frame the xpath right
@RahulKhan-lf5kw
@RahulKhan-lf5kw 5 жыл бұрын
Hi NAVEEN, can I use linktext to locate the element rather than using xpath.
@pravinshinde3177
@pravinshinde3177 6 жыл бұрын
Hi Naveen, how to maintain session in selenium webdriver suppose i have open one chrome instance by selenium driver and same instance i want to use after 2 to 3 hour fo further task
@ashwanityagi5105
@ashwanityagi5105 2 жыл бұрын
Hi Naveen, I am stuck with a problem where I need to perform drag and drop between parent and child frames. Could you please recommend any solution?
@manishbabu2797
@manishbabu2797 4 жыл бұрын
Unable to click the button: This is the button I wish to perform Click operation Next My Selenium Code: driver.findElement(By.id("login_username_submit_btn")).click(); I also tried to perform the click action using Xpath driver.findElement(By.xpath("//*[@id=\"login_username_submit_btn\"]")).click(); But still It's not performing the click operation.. This is the error which I'm getting in console: Exception in thread "main" org.openqa.selenium.WebDriverException: element not interactable (Session info: chrome=80.0.3987.163) (Driver info: chromedriver=80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}),platform=Windows NT 10.0.18363 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 31 milliseconds Build info: version: '2.53.1', revision: 'a36b8b1', time: '2016-06-30 17:37:03' System info: host: 'DESKTOP-L052U6N', ip: '192.168.0.104', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_241' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities [{mobileEmulationEnabled=false, timeouts={implicit=0, pageLoad=300000, script=30000}, hasTouchScreen=false, platform=XP, acceptSslCerts=false, goog:chromeOptions={debuggerAddress=localhost:55920}, acceptInsecureCerts=false, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, setWindowRect=true, unexpectedAlertBehaviour=ignore, applicationCacheEnabled=false, rotatable=false, networkConnectionEnabled=false, chrome={chromedriverVersion=80.0.3987.106 (f68069574609230cf9b635cd784cfb1bf81bb53a-refs/branch-heads/3987@{#882}), userDataDir=C:\Users\manis\AppData\Local\Temp\scoped_dir14776_693094881}, takesHeapSnapshot=true, pageLoadStrategy=normal, strictFileInteractability=false, databaseEnabled=false, handlesAlerts=true, version=80.0.3987.163, browserConnectionEnabled=false, proxy={}, nativeEvents=true, locationContextEnabled=true, cssSelectorsEnabled=true}] Session ID: aa73ffb3dae11357ae48acb8c2851a71 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678) at org.openqa.selenium.remote.RemoteWebElement.execute(RemoteWebElement.java:327) at org.openqa.selenium.remote.RemoteWebElement.sendKeys(RemoteWebElement.java:122) at AllTest.Temperature.main(Temperature.java:56)
@vaishalijuturu6803
@vaishalijuturu6803 3 жыл бұрын
I am trying the said syntax for drag and drop but nothing works. Drag works but the drop fails . Can you pls suggest why? Also I tried putting offset, but the coordinates are moving too fast and I am unable to capture x, y coordinates.
@softtech4574
@softtech4574 3 жыл бұрын
What if Im having home dashboard option in left page. If I want to mouse hover to left page and click on home than how should I use
@nagarajsangolgi9794
@nagarajsangolgi9794 6 жыл бұрын
Hi naveen im not able to join the discussion telegram Group it showing The invite link is invalid .....
@GeneralMotivationTopics
@GeneralMotivationTopics 2 жыл бұрын
Hello sir, from which line does the code understand that there should be a right click and not a left click.
@himanichaudhary4296
@himanichaudhary4296 5 жыл бұрын
Hey Naveen, Did you work on Canvas or may be automating the canvas of Web or Desktop?
@chatlaapoorva2045
@chatlaapoorva2045 6 жыл бұрын
Hi Naveen, How to open the link in new tab in chrome browser in mac (how to use command+t)?
@skvskv6498
@skvskv6498 6 жыл бұрын
hi naveen this too good ,can u plz explain me what is MVC architecture
@VoteForGlass2
@VoteForGlass2 3 жыл бұрын
Naveen... why don't we write XPath here....
@mohammadhakim5352
@mohammadhakim5352 3 жыл бұрын
Hi Mr Naveen, Thanks for this video. I have question.How can I write this action method in page object model in selenium? Like which page out of 3 pages ( homepage/basepage/test page) I write and how would be the pattern of writing as its page object model? Please advise. Description with example coding would be appropriated. Thank you.
@rajkumarmahendran7
@rajkumarmahendran7 6 жыл бұрын
Hi Naveen good explanation. Can you please explain about how to use robot class in selenium remote machine while running on grid
@satyaguddu508
@satyaguddu508 3 жыл бұрын
it would be helpful for us if you can show us html 5 drag and drop in selenium
@santoshkumarkamarsi5816
@santoshkumarkamarsi5816 6 жыл бұрын
What are the Abstract methods of web driver?
@s2baghel
@s2baghel 6 жыл бұрын
Hi Naveen, Is it possible for you to upload POM framework (selenium + Python) using Pycharm tool tutorial. Same like you did for java selenium. Thanks in advance.
@mikecervantes7370
@mikecervantes7370 6 жыл бұрын
Hello my context click is not working. im using intellij and my browser is mozilla version 53 please help me
@chethankumar7716
@chethankumar7716 5 жыл бұрын
Hi Naveen can you help me out with how to automate html5 drag and drop
@esmaaziz1967
@esmaaziz1967 4 жыл бұрын
Hi Chethan , did u find any solution on this?
@chethankumar7716
@chethankumar7716 4 жыл бұрын
@@esmaaziz1967 not yet
@Tanned_guy
@Tanned_guy 2 жыл бұрын
That site is not working for me.
How to read properties file || Generate Logs in Selenium - using  Log4j API
49:27
How To Perform Drag and Drop in Selenium WebDriver
19:06
Mukesh otwani
Рет қаралды 30 М.
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
MouseMovement, Drag & Drop and ImplicitWait in Selenium - Session 5
42:14
Naveen AutomationLabs
Рет қаралды 210 М.
ChainTest Report With Selenium + TestNG || Depreciation of ExtentReport
38:48
Naveen AutomationLabs
Рет қаралды 11 М.
Why RISC-V Matters
13:42
ExplainingComputers
Рет қаралды 23 М.
Handle Hidden Drop Down Values / Auto Suggestions using DOM Trick | EventListener
7:55
Switch to a specific window out of 100 windows and validate it in #Selenium
13:17