我正在為一個專案開發一些UI Automation作業并取得了巨大的成功。. . 直到嘗試自動化 Web 瀏覽器。WPFVB.Net
對于 Chrome,--force-renderer-accessibility這是天賜之物,但盡管它是基于 Chromium 構建的,但似乎他們已經在 Microsoft Edge 上禁用了此標志。. .
他們有可能重命名了國旗嗎?還有其他人知道如何強制 Microsoft Edge 進入輔助功能模式嗎?我看過
如圖所示,它給了我很多錯誤,但是按鈕在那里,盡管頁面上的文本不存在。

如果我更改注冊表設定,我會得到文本,但仍然會得到元素的所有錯誤。

Lastly, if I open MSEdge.exe via this command: start "Title for fun here" msedge.exe --force-renderer-accessibility "URL here" not only will the text show up, but so will the information for the element I'm searching for!

As to what @Jimi mentioned in the comment, I believe this issue with persisting MSEdge processes when clicking on the X button only occurs if the MSEdge Performance Boost is enabled. I had found an article at some point, but with all the searching and frantic "Oh goodness no, I have to jump to Selenium?!?" moments I've had recently with trying to automate Edge, I've lost it in the swamp of my browser history. If I find it again, I'll post the link in this answer.
If anyone has a better way of doing this very same thing outside of the flag, please, feel free to give some insights!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/442650.html
標籤:VB.net 微软边缘 microsoft-ui-自动化
