helium
helium copied to clipboard
Will it works for Microsoft Edge?
I've been going through this project and I didn't see anything related to Microsoft Edge. Since it's a chromium based browser. Does this project supports for Microsoft Edge?
Not out of the box, but you will probably be able to get it work via the selenium integration. When you start Edge via Selenium, you'll have a line:
driver = ....
Here, driver
is the Edge web driver instance. You can pass this to helium:
from helium import set_driver
set_driver(driver)
Now you can use all of Helium's functions (click(...)
, ...) to control Edge.
Selenium already has a Edge
webdriver class, just do what @mherrmann said with an instace of that class. Be sure to download the correct version of the edge driver from https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ :
from helium import *
from selenium.webdriver import Edge
driver = Edge(executable_path='PATH/TO/EDGE_DRIVER')
set_driver(driver)
kill_browser()
Got it sir. Thank you very much!