How To Perform Right Click and Double Click in Selenium WebDriver
Вставка
- Опубліковано 8 вер 2024
- In this video, we will be using actions class for advanced activity. We will use contextClick method for right click and doubleClick method double click activity.
Actions Class link
www.selenium.d...
Selenium Webdriver Playlist
• Selenium Webdriver Tut...
hi mukesh,
every time when u talk about frames by index option is not working many applications ,the example you showed in the video also by index frame is not working
Thanks for sharing it. Very helpful. One question : After rightclick, if I have to select one of the option, is that also possible to include them in these steps?
Hi Gurmeet, yes you can use Keyboard events too if you want to select further items after right click
Thanks a ton. It works. :-)
Hi Mukesh Sir, Can you upload a real-time scenario for hashmap , Vector in Selenium.
Hey Neeraj we dont use vector in Selenium but yes we use ArrayList and Hashmap in different places.
List will be used while dealing with findELements method and here is the linkua-cam.com/video/eMLXegqvuwU/v-deo.html
Hashmap in Selenium will publish soon.
Thank you
Thanks Mukund
Thanks man 🙂
Hi Sir, thanks for the explanation. Is it possible to right click on a image in a webpage and select save image option using Actions class?
yes you can do that. You can use combination of these different methods of actions class. Actions class has these methods
@@Mukeshotwani Thanks for the help Sir, really appreciate that.
Hello sir, I am not able to find out the xpath of the context menu elements. will you please tell me the process. eg: open Gmail->right click on any mail ->not able to find xpath for reply, reply all... etc of the context menu of email.
Hey Prajkta, you can automate gmail using gmail API's.
developers.google.com/gmail/api/guides/sending
@@Mukeshotwani thanks for the gmail docs. But I'm not able to find out the x path of any context menu after right click .. As I have to click on inspect at that point context menu will disappear automatically. Plz assist with This
Strange. I have the same code but it will not scroll into view for the double-click. I manually scroll into view when the script runs and then it works only. Only difference is that I am using Firefox.
Can u share the code?
Hi...double click is not working when am trying to a record..record doesn't have any hyperlink.. could you pls provide an alternative
Hi mukesh pls upload a video on hybrid framework and cucumber series from scratch
Hi Tanveer sure I have few videos on Cucumber 2 but need to make videos on Cucumber 5 now.
Hi mukesh,
I want to know about ci/cd in real-time.. can you make vedio on that.thanks
Yes, sure Nikhitha, I will try to explain how automation fit in real time with CI CD.
Hii
Please share the URL which you have used in your videos for right click and double click operation
Sure Neeti here is the link swisnl.github.io/jQuery-contextMenu/demo.html
Thanks Mukesh
Nice one :)
Can anyone point me to doc explaining the use of context (context.driver) in selenium vs (self.driver)?
Hi Mukesh Sir, can please you option add legend?
Hey Mike, I did not get your question. Can you please come again?
Mukesh otwani
Your videos not has option of the legend.
No speak English very well.
Please, Activate legend/CC in all videos .
@@miketysonschwarzeneggerpra9215 "Closed Caption" is what you want ;)
Hi Mukesh, I'm facing Abstract method error when trying to do double click or any other operation using Actions class. Could you please help me in resolving this.
Thank you.
Hi Venkat, please share screenshot.
what about perform() please try to explain also perform() and build() what they do
Hello sir, can you please upload selenium tutorial with c#?
Hey Rakhi, sure once I am done with Java, I will start Python and C#
@@Mukeshotwani Thank you sir 🙂
Double-click does not work for me using code below:
Actions act = new Actions(driver);
WebElement ele = driver.findElement(By.xpath("(//*[name()='image'])[1]"));
act.doubleClick(ele).perform();
Please share url