我将一种可工作的 Excel VBA 应用程序移动到了 C#/Windows Forms/WebView2项目。
目前,似乎基础知识还不存在。
例如...
1- if(browser.navigationComplete == true){
That simple check isn't available.
How is one supposed to flow sequences of user actions without this?
2- htmlagilitypack like tools?
In VBA you can easily work with the DOM since there's types for pretty much everything. Where's that in WebView2?
也许我弄错了,但看起来 webview2 只是一个浏览器,没有 VBA 二十多年来所拥有的自动化工具。请告诉我,我不必爬回我的中世纪 Excel VBA 地牢。我看到了光,很好!
任何架构或实际测试的工作代码将不胜感激:)
谢谢你来自温哥华,
安托万