geckofx

Is that possible ? GeckoFX can use seperate CookieContainer per instance?

大城市里の小女人 提交于 2020-01-03 14:17:11
问题 I'm Using Geckfx22.0 and xulrunner22.0 . Since GeckoWebBrowser in .Net shares cookies with all other instances of GeckoWebBrowsers I would like for a GeckoWebBrowser to have it's own cookie container which doesn't share any cookies that was created previously in other GeckoWebBrowsers or other instances. For example when I create a GeckoWebBrowser it shouldn't have any cookies. And when I run 2 instances of GeckoWebBrowser they have their own cookie container and don't share or conflict

Fill a select box using geckofx c#

流过昼夜 提交于 2020-01-01 19:17:08
问题 I am using the code: ((GeckoSelectElement) geckoWebBrowser1.Document.GetElementById("OA0001_dob_month")).Value = "Jul"; But its not working. How to select a value in a selectbox in geckofx c# without using the jscontext? 回答1: To select a value by index: var document = GeckoWebBrowser1.Document; var selectElement = (GeckoSelectElement)document.GetElementById("OA0001_dob_month"); selectElement.SelectedIndex = 2; 来源: https://stackoverflow.com/questions/33259192/fill-a-select-box-using-geckofx-c

How to handle downloading in GeckoFX 29

匆匆过客 提交于 2019-12-29 08:12:15
问题 How can I handle downloading in GeckoFx I'm using version 29 I've found some ways like adding event of LauncherDialog_Download(object sender, LauncherDialogEvent e) But, I'm not able to add handler for this event I tried this for handler LauncherDialogFactory.Register(); LauncherDialog.Download += LauncherDialog_Download; But, it is showing as error, how can i add handler and is there any other ways to handle downloading in GeckoFx 29 ? 回答1: In form load after your browser.navigate("http:/

How to handle downloading in GeckoFX 29

会有一股神秘感。 提交于 2019-12-29 08:12:11
问题 How can I handle downloading in GeckoFx I'm using version 29 I've found some ways like adding event of LauncherDialog_Download(object sender, LauncherDialogEvent e) But, I'm not able to add handler for this event I tried this for handler LauncherDialogFactory.Register(); LauncherDialog.Download += LauncherDialog_Download; But, it is showing as error, how can i add handler and is there any other ways to handle downloading in GeckoFx 29 ? 回答1: In form load after your browser.navigate("http:/

how to know if gecko browser completed loading a webpage?

独自空忆成欢 提交于 2019-12-25 02:48:12
问题 As the title says, how can i know if the gecko browser completed loading a web page? I know there is document_completed event. But it will get triggered for every time a web page loads. Are there any other ways to check if the current webpage is completed loading. 回答1: Do While WebBrowser.IsBusy = True Application.DoEvents() Loop Works for me. After WebBrowser.Navigate you have to wait for some time (I use 1 second) before IsBusy becomes True 回答2: My Solotion in vb.net and GeckoFX v45.0.34.0

Use Geckofx in a c# 64-bit Windows Forms Apps

偶尔善良 提交于 2019-12-24 14:41:59
问题 In a 64-bit C# window forms app can I use geckofx or there is no such a solution? Thanks 回答1: You need GeckoFX source code. Build in x64. Then download xulrunner source code from ftp.mozila.org (same version with gecko fx) and build in x64. An alternative to building GeckoFX from source is to use CorFlags.exe to mark the assemblies as 64bit (by Tom) 回答2: There is now 64bit geckofx nuget package. Compiling Firefox from source is no longer necessary. 来源: https://stackoverflow.com/questions

Geckofx get loaded page url

此生再无相见时 提交于 2019-12-24 12:38:12
问题 I am using geckofx-22 in my WPF app. I want to check the current url of the page which is loaded in the geckofx control. Can't find any property for the same. 回答1: Try GeckoWebBrowser.Url GeckoFx uses the nsIWebNavigation interface to implement this. 回答2: Use the below code for WPF and place it in Geckofx-WPF GeckoWebBrowser.cs /// <summary> /// Gets the <see cref="Url"/> currently displayed in the web browser. /// Use the <see cref="Navigate(string)"/> method to change the URL. /// </summary

Get Recaptcha2 Iframe HTML but always EMPTY using GeckoFX Browser in vb.net

本秂侑毒 提交于 2019-12-24 12:05:07
问题 I am using the latest GeckoFX-45 Browser for vb.net. My problem: I can not get the HTML of the Iframe. Here is my code: 'Open Recaptcha2 test site Browser.Navigate("http://patrickhlauke.github.io/recaptcha/") 'Wait for loading (all ways I know) Browser.NavigateFinishedNotifier.BlockUntilNavigationFinished() Dim maxTimeouttime As DateTime = DateTime.Now.AddSeconds(4) While DateTime.Now < maxTimeouttime System.Windows.Forms.Application.DoEvents() System.Threading.Thread.Sleep(100) End While

C# How to Navigate with post data using the geckofx browser?

霸气de小男生 提交于 2019-12-24 11:46:07
问题 I'm using C# with Visual Studio 2013, working with the geckofx browser, and I need to Navigate using POST. The Navigate method is telling me I need a MimeInputStream, which is intuitive to use. The problem I'm facing with that is how to initialize it? MimeInputStream doesn't have a constructor. I found that the following code compiles, except the part where it can't cast the GeckoMIMEInputStream into a MimeInputStream like that. My code is: string dataString = string.Format("username={0}&pwd=

How do I change GeckoFx proxy settings?

不想你离开。 提交于 2019-12-24 10:58:42
问题 I'm using GeckoFx version 1.9.1.0, Mozilla XULRunner version 12.0. 回答1: Help With Proxy Username & Pass with GeckoFX? See this answer for setting proxies programmatically. You can save and load the preferences to a file using the methods GeckoPreferences.Save(string fileName) and GeckoPreferences.Load(string fileName) With XULRunner 12, you can't store preferences until you create any apps using XULRunner (see this: https://developer.mozilla.org/en-US/docs/Mozilla/Preferences/A_brief_guide_to