BrowseSharp
BrowseSharp copied to clipboard
Jquery support
Hi
Please implement jquery support so JavaScript can work.
sample :
BrowseSharp.Browser TmpBrowser
= new BrowseSharp.Browser();
TmpBrowser.Navigate(URL);
var TmpElements
= TmpBrowser.Document.GetElementsByClassName("ok_button");
if (TmpElements.Length == 1)
{
((IHtmlElement)TmpElements[0]).DoClick();
return true;
}
And the html element is defined like this
Hey I don't want you to think I forgot about this. I am working on it, just having trouble finding the time right now.
Hi
Great. I am on holiday the next 2 weeks, but can contribute after that if you would like to.
Regards
Fra: Jason Gallagher [email protected] Sendt: søndag 4. august 2019 00.07 Til: Jayx239/BrowseSharp [email protected] Kopi: Rolf Hjemdal [email protected]; Author [email protected] Emne: Re: [Jayx239/BrowseSharp] Jquery support (#66)
Hey I don't want you to think I forgot about this. I am working on it, just having trouble finding the time right now.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/Jayx239/BrowseSharp/issues/66?email_source=notifications&email_token=AJWOXDFAOCBGO54HYWXU6CDQCX6RVA5CNFSM4IEXCCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3PWRNA#issuecomment-517957812, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJWOXDEBAU3JYLHRVJCGUY3QCX6RVANCNFSM4IEXCCFQ.
Hi
Back from my holidays. If you could give me some hints on how to contribute I am willing to spend some time on this.
Regards
Hi, For starters, I am working off of the refactor branch. I'm currently refactoring the whole project so the next release. At the moment I am cleaning some stuff up and will commit it shortly and give you more details on what to look at.
Hey I just pushed a change with jQuery actually functioning (see https://github.com/Jayx239/BrowseSharp/blob/dfee1b53a62e8f4f2a27cf58dca45e00294bc278/BrowseSharpPlayground/Program.cs#L93-L96).
One issue I found was that some of functions in the jQuery library were causing exceptions to be thrown when being executed with the jint engine. I currently have a modified jQuery file with these problem areas commented out at (https://github.com/Jayx239/BrowseSharp/blob/refactor/BrowseSharpPlayground/jquery.js).
I don't have anything else specific that I can point out for you to do at the moment, but if you want to take a look at it and debug to get an idea of how everything works that would be helpful.