Aspose.HTML not working like a headless browser

Hi,
In the documentation is mentioned that Aspose works like a Headless browser it means it should execute all javascript before document load and prepare DOM, but its not doing the same.

@rekha.bhardwaj

Unfortunately, Aspose.HTML does not provide APIs to execute JavaScript. Could you please ZIP and attach your input HTML along with expected output here for our reference? We will then provide you more information on it.

Hi,
Attached a sample file in which we expect a image loading by hitting a .aspx page , and some javascript execution from a script file added.
we are converting the output of this html page to mhtml file, by using aspose.HTML.Converters like below -

Converter.ConvertHTML(new Url(url), new MHTMLSaveOptions() , Guid.NewGuid().ToString() + “.mht”);
url is sampleHtml.html url.
sampleHtml.pdf (30.8 KB)

Regards,
Rekha

@rekha.bhardwaj

We have logged your requirement in our issue tracking system as HTMLNET-3893. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

Hi,
another problem we are facing are related to xml string we receive from c# as part of javascript executable code. Aspose.html looks like mess with the closing tags of xml we have.
attached the screen shot highlighted the closing tags we are getting , and due to this data not parsed and js do not execute as expected.AsposeCapturedXMLString.PNG (43.4 KB)

Any help is much appriciated.
Regards,

@rekha.bhardwaj

Regarding HTMLNET-3893, we need the JavaScript of your HTML that you want to execute. Please ZIP and attach complete HTML and JavaScript files here for further testing.

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input HTML and JS files.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.