What is the interaction to capture right click on a browser?
You can use "Open Context menu " interaction which is present in IE-Selenium, chrome and firefox browsers for rt click
Just add this attribute or attach and event listener to this attribute as needed. Google it,you’ll find plenty of solutions.
Question is do you want to capture right mouse click during entire automation?? if that is the case, you’ll have to attach the “contextmenu” listener on body tag itself.Just by returning false for oncontextmenu, you can restrict the right click on any webpage.