BrowseSharp icon indicating copy to clipboard operation
BrowseSharp copied to clipboard

Can javascript give back values/objects?

Open axtens opened this issue 5 years ago • 1 comments

What is your proposed enhancement? Objects returned from javascript subsystem.

Why do you want this enhancement? To handle situations where javascript's DOM management support is better than Angle's

How would you recommend this enhancement be implemented? No idea. Not that familiar with the guts of the system.

Background

            var browser = new BrowseSharp.Browser()
            {
                JavascriptScrapingEnabled = true
            };
            browser.Navigate(url);

What does JavascriptScrapingEnabled actually enable?

axtens avatar Oct 15 '19 09:10 axtens

Hey, So the JavascriptScrapingEnabled property is used to scrape the inline/external JavaScript files and store them in the Document (Document.Scripts). I'm in the process of expanding the JavaScript support so that you can execute JavaScript and have it update the virtual AngleSharp dom. This hasn't been complete though. Do you have a specific example of what kind of dom manipulation you are trying to do with js?

Jayx239 avatar Oct 15 '19 19:10 Jayx239