I'm just starting with Selenium in python, and I have set up an ActionChains object and perform()ed a context click. How do I tell whether a context menu of any sort has actually popped up? For example, can I use the return value in some way?
The reason is that I want to disable the context menu in some cases, and want to test if this has actually been done.
Selenium cannot see or interact with native context menus.
I recommend testing this in a JavaScript unit test, where you can assert that event.preventDefault() was called. It's arguably too simple/minor of a behavior to justify the expense of a Selenium test anyway.
Selenium: how to check if context menu has appeared