SELENIUM BASICS:


SELENIUM WEBDRIVER:


TESTNG:


REPORTS:


BUILD & CONTINUOUS INTEGRATION TOOLS:


CROSS BROWSER TESTING:


MOBILE TESTING:


AUTOMATION FRAMEWORKS:


API Testing:


INTERVIEW QUESTIONS:


SAMPLE RESUME:

How To Perform Right Click Action (Context Click) In Selenium

Perform Right Click Action In Selenium:

In some scenarios, we may need to do right click action / context click on an element to do some actions. We use Actions class in Selenium WebDriver to work on Mouse and Keyboard Actions. Check out the below link for detailed explanation of Actions Class.

Must Read: Actions Class in Selenium WebDriver

Coming back to the current post, here we I take a scenario to do right click action on an element and get the text of an item

Scenario to be automated:

  1. Launch the web browser and open the application
  2. Find the required element and do right click on the element
  3. Go to the options ‘copy’ and get the text of it and print it
  4. Close the browser to end the program

Copy the below mentioned script and work on this scenario.

Given clear explanation in the comments section with in the program itself. Please go through it to understand the flow.

If you are not regular reader of my blog then I highly recommend you to signup for the free email newsletter using the below link.

Get our latest blog posts delivered to your inbox

Subscribe and get popular blog posts about software testing industry.

Rajkumar

Leave a Comment

Share via
Copy link
Powered by Social Snap