lefthandedgoat / canopy

f# web automation and testing library, built on top of Selenium (friendly to c# also)
http://lefthandedgoat.github.io/canopy/
MIT License
505 stars 117 forks source link

OpenQA.Selenium.Chrome.ChromeDriverService.set_WhitelistedIPAddresses(System.String) error message #530

Closed mikej0 closed 4 months ago

mikej0 commented 4 months ago

Describe the bug Hi,

Working on some tests, and had to update Selenium ChromeDriver. While I was at it I also updated Selenium.Support and Selenium.WebDriver in my project too. (Both went from v4.16.2 to 4.18.1.)

I now get the error:

System.MissingMethodException: 'Method not found: 'Void OpenQA.Selenium.Chrome.ChromeDriverService.set_WhitelistedIPAddresses(System.String)'.'

Undoing the updates for Support and WebDriver gets things working again.

To Reproduce Steps to reproduce the behavior:

  1. Update Selenium.Support and Selenium.WebDriver to 4.18.1
  2. Try running a test - it'll fail when it tries starting the browser.

Expected behavior A clear and concise description of what you expected to happen. Tests should run

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

lefthandedgoat commented 4 months ago

This looks like a breaking change in Selenium 4.18 that was unintended.

https://github.com/SeleniumHQ/selenium/pull/13626

For now you can use 4.17 and wait for this bufix to be released in 4.18.?

mikej0 commented 4 months ago

Hello,

Thanks for spotting that - yep, I can wait. I'd assumed the change was intentional. Although, I guess if the original property has been marked obsolete, it's only a matter of time before this'll crop up again.

Now I know.

Thanks