Skip to content
Advertisement

How to right click on a link and open the link in a new tab using Selenium through Java

I am trying to right click on the Forgotten account? link on the Facebook login page using Selenium but it is not working.

I am trying to send.Keys() after contextClick() but the key press is happening on the page and not on the context menu.

JavaScript

Advertisement

Answer

JavaScript

}

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement