-
Notifications
You must be signed in to change notification settings - Fork 12
Description
We are testing a WebApp with Selenium 4 (Version 4.11) 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 the WindowHandles was increased by 1 when the Print Dialog was opened an 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.
Was there any intentional change related how PrintDialog has to be handled?
The Version installed before was Version Microsoft Edge 115.0.1901.203 (no mention of For Business)
Not sure if this is an EdgeDriver or Selenium Issue but since it appeared after update of the Edge version and driver I'm trying my luck here.
Attached file shows a screenshot of VisualStudio in Debug-Mode showing the value of WindowHandles and the state of the Browser at this time
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.