Select an Option from the Right-Click Menu in Selenium Webdriver - Java
To select the item from the contextual menu, you have to just move your mouse positions with the use of Key down event like this:-
Actions action= new Actions(driver);
action.contextClick(productLink).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.RETURN).build().perform();
hope this will works for you.
Have a great day :)
Unable to select an option from right click menu in selenium using java
Just use the below snippet
Actions action= new Actions(driver);
action.contextClick(hotSpot).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ARROW_DOWN).sendKeys(Keys.ENTER).build().perform();
Related Topics
Jpa: Unidirectional Many-To-One and Cascading Delete
Using Powermockito.Whennew() Is Not Getting Mocked and Original Method Is Called
Detect and Extract Url from a String
Run Java Application at Windows Startup
Dynamically Changing Log4J Log Level
What Is the Main-Stream Java Alternative to ASP.NET/Php
When Should We Create Our Own Java Exception Classes
How to Determine If a Date Is Between Two Dates in Java
How to Pick an Item by Its Probability
How to Resolve Unable to Load Authentication Plugin 'Caching_Sha2_Password' Issue
Why to Use Stringbuffer in Java Instead of the String Concatenation Operator
How to Manage Rest API Versioning with Spring
Java.Util.Stream with Resultset
Check If a String Contains a Special Character
How to Convert Current Date into String in Java
How to Make My Swingworker Example Work Properly
Is There a 'Block Until Condition Becomes True' Function in Java