We are testing a WebApp with Selenium 4 on Edge browser.
Today the Browser was updated to Microsoft Edge for Business Version 116.0.1938.54 in our company, and thus we also had to update the Webdriver to version 116.0.1938.54
We are facing the following issue now in our TestAutomation project: We use the count of WindowHandles to check if a PrintDialog was opened. So far (until Edge/WebDriver Version 115) the WindowHandles was increased by 1 when the PrintDialog was opened and we could switch to it an close it. Since the update we are facing the issue that the count of WindowHandles remains unchanged when the Print Dialog is opened (even though the Print Dialog was opened successfully)
Anybody else facing this issues? Does any know a workaround for this?
We were expecting the behaviour to be unchanged in Edge and WebDriver Version 116. So far I could not find any information that this was changed intentionally.
We also updated Selenium to the latest Version 4.11 but didn't change anything :(
Update 4.9.2023
Today I found out that if I add "webview" to the WindowTypes during creation of the driver by calling AddWindowTypes("webview") on the EdgeOptions the WindowHandles are increased to 2 again after print ist triggered. Unfortunately this does not solve my issue. It looks like now with this second window I only have access to the right part of the print dialog where the preview of the document is shown :( I still found no way to click the "Cancel" Button