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...

КОМЕНТАРІ • 40

  • @akhilchowdary3161
    @akhilchowdary3161 4 роки тому +1

    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

  • @GurmeetSingh-ls8xb
    @GurmeetSingh-ls8xb 3 роки тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому +1

      Hi Gurmeet, yes you can use Keyboard events too if you want to select further items after right click

    • @GurmeetSingh-ls8xb
      @GurmeetSingh-ls8xb 3 роки тому

      Thanks a ton. It works. :-)

  • @neerajyadav-wt4cn
    @neerajyadav-wt4cn 4 роки тому +1

    Hi Mukesh Sir, Can you upload a real-time scenario for hashmap , Vector in Selenium.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      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.

  • @MukundEquity
    @MukundEquity 2 роки тому +1

    Thank you

  • @Elliot-792
    @Elliot-792 11 місяців тому

    Thanks man 🙂

  • @avikroychoudhury3858
    @avikroychoudhury3858 3 роки тому +1

    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?

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому +1

      yes you can do that. You can use combination of these different methods of actions class. Actions class has these methods

    • @avikroychoudhury3858
      @avikroychoudhury3858 3 роки тому

      @@Mukeshotwani Thanks for the help Sir, really appreciate that.

  • @prajktapund5666
    @prajktapund5666 4 роки тому +1

    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.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hey Prajkta, you can automate gmail using gmail API's.
      developers.google.com/gmail/api/guides/sending

    • @prajktapund5666
      @prajktapund5666 4 роки тому

      @@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

  • @3VAudioVideo
    @3VAudioVideo 3 роки тому +1

    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.

  • @chaitradr3545
    @chaitradr3545 2 роки тому

    Hi...double click is not working when am trying to a record..record doesn't have any hyperlink.. could you pls provide an alternative

  • @tanveersyed1049
    @tanveersyed1049 4 роки тому +1

    Hi mukesh pls upload a video on hybrid framework and cucumber series from scratch

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Tanveer sure I have few videos on Cucumber 2 but need to make videos on Cucumber 5 now.

  • @A_philodendron
    @A_philodendron 4 роки тому +1

    Hi mukesh,
    I want to know about ci/cd in real-time.. can you make vedio on that.thanks

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Yes, sure Nikhitha, I will try to explain how automation fit in real time with CI CD.

    • @vivekzambre6476
      @vivekzambre6476 3 роки тому

      Hii

  • @neetigoyal9075
    @neetigoyal9075 4 роки тому +1

    Please share the URL which you have used in your videos for right click and double click operation

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +2

      Sure Neeti here is the link swisnl.github.io/jQuery-contextMenu/demo.html

    • @neetigoyal9075
      @neetigoyal9075 4 роки тому

      Thanks Mukesh

  • @swamyas5668
    @swamyas5668 4 роки тому

    Nice one :)

  • @illmatic33
    @illmatic33 3 роки тому

    Can anyone point me to doc explaining the use of context (context.driver) in selenium vs (self.driver)?

  • @miketysonschwarzeneggerpra9215
    @miketysonschwarzeneggerpra9215 4 роки тому +1

    Hi Mukesh Sir, can please you option add legend?

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hey Mike, I did not get your question. Can you please come again?

    • @miketysonschwarzeneggerpra9215
      @miketysonschwarzeneggerpra9215 4 роки тому

      Mukesh otwani
      Your videos not has option of the legend.
      No speak English very well.
      Please, Activate legend/CC in all videos .

    • @3VAudioVideo
      @3VAudioVideo 3 роки тому

      @@miketysonschwarzeneggerpra9215 "Closed Caption" is what you want ;)

  • @venkatkothuri8876
    @venkatkothuri8876 4 роки тому

    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.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Venkat, please share screenshot.

  • @rahulkumar-kh6zk
    @rahulkumar-kh6zk 4 роки тому

    what about perform() please try to explain also perform() and build() what they do

  • @rakhi.sharma6890
    @rakhi.sharma6890 4 роки тому +1

    Hello sir, can you please upload selenium tutorial with c#?

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hey Rakhi, sure once I am done with Java, I will start Python and C#

    • @rakhi.sharma6890
      @rakhi.sharma6890 4 роки тому

      @@Mukeshotwani Thank you sir 🙂

  • @qatester6425
    @qatester6425 Рік тому +1

    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();