-
Notifications
You must be signed in to change notification settings - Fork 11
GetWindows doesn't respond after downloading #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am scraping internal company web pages. Since I cannot share the internal pages, I used the 7zip download page as an example in my initial post, but this occurs infrequently. It always occurs on the internal pages. I have attached the log from scraping the internal pages. The file is named EdgeDriver03A.log. The internal pages perform download operations in a popup window from the main page. After the final AcceptAlert, the download starts, and once the file extension is no longer "crdownload," I call SwitchToWindow, but it times out. |
Hi @Okamo1029 , how often do you get this issue? I tried to manually test the issue with Edge 134.0.3124.66 but cannot repro the issue. I also created a test app and ran 20+ times, still cannot repro: `using OpenQA.Selenium; namespace WebdriverGetWindowNotResponding
}` |
Thank you guangyuexu for your prompt reply. This issue occurs 100% on our company's internal web pages. As a supplement, the scraping tool is created using the following TinySeleniumVBA and Excel VBA. This is to distribute it to many people without requiring installation: https://github.com/uezo/TinySeleniumVBA/blob/main/README.ja.md |
Thank you guangyuexu. Here are the steps to reproduce the issue: (1) Display "http://localhost:8000/main01.html" Below is the actual VBA code. I'm not familiar with other languages, so I'll write it in VBA code. Sorry. Dim strW01 As String 'Variable to store window ID 'Open the browser 'Navigate to the target page 'Get the window ID 'Get the object of the "sub window" button 'Set the newly popped-up window as the target 'Get the window ID 'Switch to the inner iframe 'Switch to the inner iframe 'Get the object of the "download" button 'Get the message of the confirmation dialog 'Wait for the download 'Set the popup window as the target (this command will cause it) That's all. |
If you do the following, it will not respond.
This occurs from version 133 onwards.
msedgedriver - Edge version combination
134 - 134: Occurs
133 - 133: Occurs
132 - 133: Does not occur
chromedriver - Chrome combinations, both 133 and 134, work normally.
(1) Start msedgedriver.exe
(2) Open a browser
(3) Navigate to the following site (any site will do)
https://forest.watch.impress.co.jp/library/software/7zip/
(4) Click the download button manually
(5) Wait for the download to complete
(6) This occurs once every few times when GetWindows is called
http://localhost:xxxxx/session/$sessionid/window/handles
(7) If this does not occur, manually return to the previous page and repeat steps (4) to (6).
Note: This is more likely to occur if FindElement or similar is called between steps (4) and (6).
Attached is the log file.
EdgeDriver01A.log
EdgeDriver02A.log
The text was updated successfully, but these errors were encountered: