Issue
We have extension that we are testing and when i run the code with selenium it open the browser with the extension and now i need to enable it with a slide to right.
I thought i can do it with Inspect ( xpath,elemts,id or etc..) but as i can see i don't get the Inspect from the Extension button when i right click on it, and from the extension after that too.
But inside the extension i have a Slide to move to the right to start it, on the Slide i can export the Inspect information, but what i need to use to slide it to the right side?
Basically this is how my code starts:
op = Options()
op.add_extension('../extension/extension_21_9_0_0.crx')
driver = webdriver.Chrome(ChromeDriverManager().install(), options=op)
move = ActionChains(driver)
#driver.maximize_window()
time.sleep(2)
driver.get(url)
Solution
Selenium cannot target the extensions menu, you can simulate a click using pyautogui to make it work.
Answered By - Pedro Maia
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.