MicrosoftEdge / EdgeWebDriver

Feedback and discussions about WebDriver for Microsoft Edge
MIT License
55 stars 7 forks source link

Edge webdriver failed: KeyError: 'MicrosoftEdge' #138

Open wancy2024 opened 7 months ago

wancy2024 commented 7 months ago

I have updated my edge browser to version 120.0.2210.61 and updated edge webdriver to 120.0.2210.133. When i run my automated robot framework test case and i got this error :

20240115 05:24:00.585 : INFO : ${Selenium2Library} = <Selenium2Library.Selenium2Library object at 0x00000163B2B7F550> 20240115 05:24:00.585 : INFO : ${Selenium2LibraryCapabilities} = {'acceptInsecureCerts': False, 'browserName': 'MicrosoftEdge', 'browserVersion': '120.0.2210.61', 'fedcm:accounts': True, 'ms:edgeOptions': {'debuggerAddress': 'localhost:64718'}, 'msedge': {'msedgedr... 20240115 05:24:00.601 : INFO : ${BROWSERtype} = MicrosoftEdge 20240115 05:24:00.601 : INFO : ${BROWSERversion} = 120.0.2210.61 20240115 05:24:00.601 : FAIL : Resolving variable '${Selenium2LibraryCapabilities['MicrosoftEdge']}' failed: KeyError: 'MicrosoftEdge'

I have no issue when using Edge browser 115.0.1901.200 with edge webdriver 115.0.1901.200. After this version upgrade, i got this issue.

Same issue happened when tried on Edge browser version 121 as shown at below :

"20240301 07:08:24.589 : INFO : ${Selenium2LibraryCapabilities} = {'acceptInsecureCerts': False, 'browserName': 'MicrosoftEdge', 'browserVersion': '121.0.2277.112', 'fedcm:accounts': True, 'ms:edgeOptions': {'debuggerAddress': 'localhost:63422'}, 'msedge': {'msedged... 20240301 07:08:24.589 : INFO : ${BROWSERtype} = MicrosoftEdge 20240301 07:08:24.589 : INFO : ${BROWSERversion} = 121.0.2277.112 FAIL : Resolving variable '${Selenium2LibraryCapabilities['MicrosoftEdge']}' failed: KeyError: 'MicrosoftEdge'

Can please help to advice what is wrong at here? Thanks in advance.

Here are the version i am using for the following : robot framework 6.0.2 robotframework-ride 2.0b3 robotframework-selenium2library 3.0.0 robotframework-seleniumlibrary 6.0.0 selenium 4.9.0