huan
huan
这个可能是你需要的 https://www.kancloud.cn/testerhome/appium_docs_cn/2001917
> 基于上面大佬提供的步骤,写了一篇比较详细的搭建教程,提供大家自行搭建参考[ChatGPT-Porxy](https://github.com/dqzboy/ChatGPT-Porxy) 请问香港的服务器可以吗 还是必须其他国家的
It seems because EnsureCoreWebView2Async never returns
Is it because of this reason? Multiple environment objects [https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/winrt/microsoft_web_webview2_core/corewebview2environment?view=webview2-winrt-1.0.2478.35](url)
``` from Microsoft.Web.WebView2.Core import CoreWebView2Environment class EdgeChrome: def __init__(self, form, window, cache_dir): # ... def _callback(task): self.web_view.EnsureCoreWebView2Async(task.Result) webView2Environment = CoreWebView2Environment.CreateAsync() webView2Environment.ContinueWith( Action[Task[CoreWebView2Environment]](_callback), self.syncContextTaskScheduler, ) # self.web_view.EnsureCoreWebView2Async(None) ```
This will work
I used it this way because I thought pywebview was pretty good, so I planned to build some small tools using pywebview, but in the end I found that these...
After testing, private_mode and cookie can work normally.
```python windll.user32.SetWindowLongW(self.Handle.ToInt32(), -16, windll.user32.GetWindowLongW(self.Handle.ToInt32(), -16) | 0x00020000) ```
> Winforms does not provide modern dialogs, but it seems to be doable by implementing dialogs on top of IFileDialog https://learn.microsoft.com/en-us/windows/win32/shell/common-file-dialog > > `Microsoft.Win32.OpenFileDialog` namespace looks like a promising candidate...