• +43 660 1453541
  • contact@germaniumhq.com

Germanium Offers Now Edge Support (Beta)




Germanium Offers Now Edge Support (Beta)

Version 1.10.0 offers now Edge support.

In order to access it you just need to update Germanium (pip install -U germanium), and call open_browser('edge'). That’s it. This will download the driver for you (read the Microsoft Licensing below on the page) and just work like before with any other browser.

So instead of doing:

1
2
3
open_browser('ie')  # or 'firefox' or 'chrome'
go_to('http://google.com')
# ..

you can do now also:

1
2
3
open_browser('edge')
go_to('http://google.com')
# ..

Beta

You might have noticed that the support is still in beta. The reason is that in the test suite that validates Germanium itself, there are still two sets of tests that fail, and both of them are caused by the binary driver itself:

  1. The alerts that open immediately when the page is loading, aren’t opening in the Edge browser itself. Normal alerts work though.
  2. Multiple values selects don’t allow being selected. This is true only for multiple values selects, with regular selects working just fine.

Since these limitations are small we decided to include the WebDriver support.

Microsoft Licensing

Note that for some strange reason the Edge drivers are not redistributable. What that means is that Germanium can’t bundle the drivers for you. In order to make the experience the classic Germanium experience, where we do a call and everything just works, Germanium will download the drivers on your behalf, and make them available into the PATH.

What Germanium can’t do on your behalf is agreeing to the license that Microsoft requires.

So in order to use it, you need to first read Edge WebDriver License and agree to it, then either export in the environment a variable named GERMANIUM_I_AGREE_TO_MS_EDGE_LICENSE, or if changing the environment is not possible, do before calling open_browser('edge'):

1
2
import germaniumdrivers
germaniumdrivers.i_agree_to_ms_edge_license()

Note, that the drivers will be downloaded only once, in later runs if the drivers are still there, Germanium will not attempt to re-download them.