Click here to Skip to main content
15,902,938 members
Everything / Gecko

Gecko

Gecko

Great Reads

by Sam__Khan
Automated Craigslist parsing with Selenium using Node.js
by WasiUllah Khan
Automated Pakwheels parsing with Selenium and Python

Latest Articles

by WasiUllah Khan
Automated Pakwheels parsing with Selenium and Python
by Sam__Khan
Automated Craigslist parsing with Selenium using Node.js

All Articles

Sort by Score

Gecko 

6 May 2018 by Sam__Khan
Automated Craigslist parsing with Selenium using Node.js
5 Jul 2013 by thanh_bkhn
In your button6_Click(), you create a new instance of GeckoWebBrowser, but it is a local object. So it's null in SetText1 function.You should put the declaration of GeckoWebBrowser Browser as a class array of type GeckoWebBrowser:List BrowserList = new...
23 Jul 2013 by Thomas Daniels
Hi,Have a look here:http://stackoverflow.com/a/15890613[^]
30 Aug 2016 by raohui
You can use the event CreateWindow2 to handle a new popup window:GeckoWebBrowser wb1 = new GeckoWebBrowser();wb1.CreateWindow2 += new EventHandler(wb1_CreateWindow2);Here event CreateWindow2:void wb1_CreateWindow2(object sender,...
4 Jul 2013 by Soloveikok
I have the following code snippets. First I add the GeckoWebbrowser. Then I launch the form, I visit some page, wait till messagebox "Doc loaded pops up", then Click the button to call Function Settext(), So the document is definitely completed, When I click the button I get an error that the...
23 Jul 2013 by Antonis Zalonis
I try to execute a javascript command like alert('test message') via GeckoFX and C# but I can not.I try without results with Navigate and with ExecuteCommandMy code isint i = 0;GeckoWebBrowser...
24 Jul 2013 by Antonis Zalonis
I want to scroll a div via Gecko and C#My code is GeckoDivElement div1 = new GeckoDivElement(icdIFrameElement.ContentDocument.GetHtmlElementById("t1::scroller").DomObject);GeckoElementCollection divs = div1.GetElementsByTagName("div");GeckoDivElement div = new...
1 Sep 2013 by Nakx95
How can i get the element that i have just clicked by using the C# webbrowser DomClick event ?Actually i'm using geckowebbrowser ,but I think it will be fine anyway...
11 Dec 2014 by sachi Dash
Please see the following code. private void Form1_Load(object sender, EventArgs e) { geckoWebBrowser1.Navigate("http://localhost:62343/ReportPage.html); } private void Form1_Shown(object sender, EventArgs e) { var...
11 Dec 2014 by Richard Deeming
You won't be able to access the document until the control has finished loading the page.Assuming you're using the control from the GeckoFX[^] library, you need to wait for the DocumentCompleted event to be raised before you can access the document.
30 Aug 2016 by quangvucntt
How to open new window with gecko browser? I used CreateNewWindow but it not work.GeckoWebBrowser gecko= new GeckoWebBrowser();gecko.CreateNewWindow(1);gecko.Navigate(url);Please help me!Thanks you!
21 Aug 2015 by Chekakis
http://stackoverflow.com/quest...
16 Nov 2020 by Member 11660883
When using geckofx 45 webrowser control in a windows form application is there a way to disable the web browser from user input. In geckofx 33 there was a geckowebbrowser.Enable property you could set but its gone in 45. Or Is there another way to do it?What I have tried:tried...
1 Sep 2017 by Member 13389746
Hello, I need some help. I have a Java 1.8 test application that uses Selenium 3 and the Firefox Geckodriver. The tests work perfectly when I'm at work but fail when I'm trying to work at home. Since I work exclusively on a virtual machine, and have cloned the work virtual machine for my home...
1 Sep 2017 by Dave Kreskowiak
You're really only going to get guesses to this one since you've taken a work machine out of the environment it was design and configured to run in. My first guess, the browsers on the machine were configured to go through a proxy server at work, one which does not exist at home.
11 Jan 2018 by Member 13618958
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36 Steps to reproduce: 1. resources I used : C# , Selenium , VS 2017, Jenkins , VM machine (windows 10) , Nunit v3.9, geckoDrive v19, firefox v56/57 2. I can...
23 Jul 2020 by Simos Sigma
I am working on a VB.NET project and using the GeckoWebBrowser control (v45.0.34.0), I am trying to download a file from a web page on html button click. I managed to load the page, find the button, but when my code "clicks" on it, I get nothing!!! Do I have to create any "extra" event for this?...
12 Jul 2018 by marcelo8690
using c # and geckofx How do I put a file in a filepicker object without opening the dialog form? What I have tried: internal class myFileDialog: nsIFilePicker, IDisposable { nsIFilePicker filePicker = null; public myFileDialog(): base() { ...
19 Feb 2020 by Member 11811209
I have a Geckofx webcontrol in my winforms app. I want to fill some textboxes from my code. The website, which I want to fill is devided in iframes. The iframe I want to get into has as source a link with a session ID. It seems to be not...
23 Jul 2020 by DanCaraca
Try this (in C#) LauncherDialog.Download += new EventHandler(LauncherDialog_Download); private void LauncherDialog_Download(object sender, LauncherDialogEvent e) { var saveFileDialog1 = new SaveFileDialog(); ...
4 Nov 2020 by DanCaraca
Find the element Frame. Get ContentWindow Convert to Document Ex (getting first frame): var lstFrame = geckoWebBrowser1.Document.GetElementsByTagName("FRAME"); if (lstFrame.Lenght
16 Nov 2020 by DanCaraca
I think that there is a Enable property in Gecko 45. Anyhow, you can always use (geckowebbrowser as Control).Enabled = false;
26 Sep 2021 by den2k88
Hi everyone, I am tasked to study the feasibility of porting a code I wrote for Linux (almost entirely POSIX) with pthreads and sockets to a GeckoOS app. The SDK documentation for GeckoOS doesn't mention any kind of thread creation function and...
26 Sep 2021 by den2k88
I got confirmation from Silabs, no user threads in the pThread sense. The OS manages a thread pool of which the Application is one. Being roughly an RTOS version, any "threads" would be scheduled routine calls.
13 Dec 2022 by Member 11641401
Initially Iam using Webbrowser in vb.net for googlemap. now google not supporting the Webbrowser.So Iam using geckoWebbrowser. map is displaying in browser but my issue is when i click map the geolocation to pass to vb.net form function .but iam...
13 Dec 2022 by Richard Deeming
Looks like you need to use a message event to trigger your VB.NET code from Javascript: https://stackoverflow.com/questions/15710581/how-to-call-c-sharp-method-in-javascript-by-using-geckofx-as-the-wrapper-of-xulr[^] Window.postMessage() - Web...
25 Jan 2023 by Graeme_Grant
I saw this article this morning that should answer your questions: Web Scraping with C# | ScrapingBee[^]
25 Jan 2023 by Richard Deeming
An element doesn't have an InnerText property. Try setting its Value property instead. NB: You'll probably need to change your loop variable to GeckoInputElement instead. var links =...
26 Jan 2023 by Mehmet Pehlivan
thank you very much i solved it in a different way I solved it the easier way using cefsharp code : browser.ExecuteScriptAsync("document.getElementById('join_neu_email_field').value ='aa';"); ...
1 May 2017 by Member 11383935
I manage to do this for webBrowser and now i will lke to do same things for gecko browser, but geting a error: "'Gecko.GeckoDocument' does not contain a definition for 'Window' and no extension method 'Window' accepting a first argument of type 'Gecko.GeckoDocument' could be found (are you...
17 Apr 2019 by WasiUllah Khan
Automated Pakwheels parsing with Selenium and Python
10 Mar 2013 by tony karant
i did everything right and my program was working fine a few days ago, and then i went to go test it and i get this message" An error occurred creating the form. See Exception.InnerException for details. The error is: Unable to cast COM object of type 'System.__ComObject' to interface type...
26 Mar 2015 by Erhan Güneş
Please help me problem button click GeckoElementCollection tagsCollection = geckoWebBrowser1.Document.GetElementsByTagName("input"); foreach (GeckoElement currentTag in tagsCollection) ...
8 Dec 2014 by sachi Dash
Please follow this code then give me solution.private void Form1_Load(object sender, EventArgs e) { geckoWebBrowser1.Navigate("http://localhost:62343/Test.html"); }private void scriptInvoke_Click(object sender, EventArgs e) ...
23 Jun 2015 by Member 11273115
Hello everybody I'am trying to execute JavaScript in GeckoWebBrowser my code is : GeckoWebBrowser1.Navigate("javascript:void(" + TextBox2.Text.Replace("""", """""") + ")")my JavaScript is : var r = confirm("Press a button");if (r == true) { x = "You pressed OK!";} else...
26 Jan 2023 by Mehmet Pehlivan
I was able to do it similarly in internet explorer, but when I do it based on firefox, I get an error private void button1_Click(object sender, EventArgs e) { geckoWebBrowser1.Navigate(textBox1.Text); } private void button2_Click(object...
27 Jan 2023 by Mehmet Pehlivan
selecting radio button on site and selecting object from form on site my Code = var links = geckoWebBrowser1.Document.GetElementsByTagName("input"); foreach (Gecko.DOM.GeckoInputElement link in links) { ...