-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
When using LoadFromBrowser, a popup window appears if the content is in json. #457
Comments
Hello @ogosengi , Thank you for reporting, we will look at it. Best Regards, Jon Sponsorship Performance Libraries Runtime Evaluation |
Hello @ogosengi , The v1.11.39 has been released. Could you try it and let me know if everything is fixed Is this library useful to you? Please help us by becoming a sponsor to keep it alive and supported. |
Thank you for Your fast reply. I am coding in VisualStudio2019(WindowsForm, .NET Framework 4.7.2) The pop-up window still appears. |
Hello @ogosengi , Unfortunately, I don't get a popup anymore on my side even with the URL and config you provided. So that makes it pretty much impossible to fix it on my side. Could you check if you still get the popup with this code: string str1 = "https://infuser.odcloud.kr/oas/docs?namespace=15074473/v1";
var webBrowser = new WebBrowser();
webBrowser.ScriptErrorsSuppressed = true;
webBrowser.NewWindow += WebBrowser_NewWindow;
webBrowser.Navigate(str1);
private void WebBrowser_NewWindow(object sender, CancelEventArgs e)
{
e.Cancel = true;
} If yes, try to fix it if you can and we will apply your change. As said, we cannot reproduce it so we cannot go anything more on our side. Best Regards, Jon |
Hello @JonathanMagnan It is same problem. If I try the URL in IE, it will try to download the file in the same way. I Try Selenium Chrome Driver (very slow ㅜㅜ) private void button2_Click(object sender, EventArgs e)
} It is not Popup |
Hello @ogosengi , Unfortunately, we cannot add a reference to selenium to our project. |
I solved it in another way. I try Registry Update, It work. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\MIME\Database\Content Type\application/json] [HKEY_CLASSES_ROOT\MIME\Database\Content Type\text/json] |
When using LoadFromBrowser, a popup window appears if the content is in json.
Can I disable the pop-up window?
Language: C#
HtmlAgilityPack ver: 1.11.38
Point of Popup
HtmlAgilityPack.HtmlDocument doc = web.LoadFromBrowser(strurl);
The text was updated successfully, but these errors were encountered: