I am using Selenium.
How to select any option of my choice from the context menu, opened via mouse right-click?
E.g. the ‘Cast’ option?
Sure, I can use Open Context Menu. But after that, I can’t do much else.
Suggestions?
Maybe try mix Se for Open Browser and then for chrome context menu automation use pyautogui
import pyautogui
pyautogui.click(x=100, y=200, button=‘right’)
pyautogui.press([‘down’, ‘down’, ‘down’, ‘down’, ‘down’, ‘enter’])
for other options that have hotkeys assigned use pyautogui.hotkey(‘ctrl’, ‘S’)
For casting itself there are some methods in webdriver class.
Thank you for the response!
Looks very promising!
I had been ignoring pure Python solutions until now, as I was hoping there was some easy, non-coder solution via Robot keywords/modules.
I guess coding is the way to go in this case
Quite a few robot libraries utilize pyautogui under the hood.
Were you refering maybe to GitHub - GDATASoftwareAG/robotframework-flaui: Windows user interface automation library for Robot-Framework. FlaUILibrary is a wrapper for the FlaUI automation library., or you had other one in mind? Would be good to know for future projects.