September 22, 2020 at 8:18 am #258029ParticipantTopics: 1Replies: 0Points: 12Rank: Member
September 22, 2020 at 9:30 am #258053ParticipantTopics: 16Replies: 1794Points: 3,300Rank: Community Hero
Nothing was shared on what you accomplished or the ‘content’ you want. The ie com object can be used to emulate button clicks, scrolling or any interaction with website:
As you can see in the above, you can also use DOM to parse the page and get content.
September 22, 2020 at 12:58 pm #258131ParticipantTopics: 7Replies: 137Points: 668Rank: Major Contributor
I have done what you seem to be asking. Here is my $.02.
In my case, I was creating a digital signature via the Canvas element and saving that image/signature to a file. The HTML page was created from a PowerShell script and then opened in IE. The reason I chose to open in IE is that IE/EDGE are the only browsers that seem to honor your admin privileges on the system in that if you want to save the file to a restricted folder (limited to admins only which was my case), only IE/EDGE would honor those permissions. Chrome/FF did NOT.
Not sure exactly what you want to save but if you want to save HTML content, it looks like you need to use the Blob object.
As for building your HTML from PowerShell, can you show what you have tried? In my case, I built the page with what I call brute force and then added table content using PowerShell ConvertToHTML.
- You must be logged in to reply to this topic.