carter2408 Posted April 21, 2015 Report Posted April 21, 2015 Am instalat browserul GeckoWebBrowser si vreau sa inlocuiesc comandaWebBrowser1.Document.GetElementById("iliveswitch").InvokeMember("click")sa functioneze pentru GeckoWebBrowser ... Quote
S.L.C Posted April 21, 2015 Report Posted April 21, 2015 (edited) Nu prea lucrez in .NET dar daca rulezi un search prin sursa observi (in special comentul): /// <summary>Raises the <see cref="DomClick"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnDomClick(GeckoDomEventArgs e) { if (((GeckoDomEventHandler)this.Events[DomClickEvent]) != null) ((GeckoDomEventHandler)this.Events[DomClickEvent])(this, e); }(/GeckoWebBrowser.cs) (SVN difera)Daca te ajuta la ceva atunci bine dar daca nu... atunci tot bine. Nici nu prea am inteles ce vrei sa faci deoarece nimeni nu specifica niciodata ce vrea sa faca. Toata lumea pune cate o intrebare vaga si atat. Deci presupun ca un raspuns vag este asteptat in schimb (scuze pentru ostilitate) Edited April 21, 2015 by S.L.C Quote
daNNy.bv Posted April 21, 2015 Report Posted April 21, 2015 geckowebbrowser.Navigate("javascript:void( document.getElementById( 'idname' ).click() ) ") Quote