helium icon indicating copy to clipboard operation
helium copied to clipboard

Will it works for Microsoft Edge?

Open fharookshaik opened this issue 4 years ago • 4 comments

fharookshaik avatar Nov 07 '20 17:11 fharookshaik

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?

fharookshaik avatar Nov 07 '20 17:11 fharookshaik

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.

mherrmann avatar Nov 09 '20 07:11 mherrmann

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()

danbaghilovici avatar Feb 02 '21 18:02 danbaghilovici

Got it sir. Thank you very much!

fharookshaik avatar Feb 03 '21 01:02 fharookshaik