How to selecting option from right click menu with Selenium
问题 I'm using chrome as the driver and after double-clicking/context-clicking, the prompt window opens but the driver won't switch to the prompt window. Here is what I have tried... The page I am opening is google.com, search, then trying to right-click so i can open the results in different tabs. Thanks in advance. ....... element = driver.find_element_by_class_name("LC20lb") actionchains = ActionChains(driver) actionchains.context_click(element).perform() # Driver needs to switch to the popup