Also sprach Jesse McCann <
jessebla...@gmail.com>:
> I'm watching a tutorial for Selenium IDE, and it says that if I right
> click in Firefox while recording, a Selenium context menu opens with
> test options (e.g. title assert). However, when I right click, a
> dropdown appears, but contains no Selenium options (just the normal
> Firefox ones).
Note that WebDriver is not meant to be able to do OS-level interaction.
Since the context menu is an OS-level widget and not part of the web
platform, it is just incidental that FirefoxDriver (which IDE uses for
automation of older Firefoxen) is able to open this menu.
If you need to automate newer Firefoxen, 47 and onwards, you need to
use geckodriver. geckodriver is an implementation of the W3C WebDriver
protocol, which explicitly says that a right click in a document
_should not_ open the context menu, since that is out of scope of
interacting with a web document.
So my advice to you would be to be careful about what you use the
context menu interaction for. You don’t say what you want to achieve
by automating this menu, but I suspect there are platform alternatives
for what you want to achieve.