WebBrowser control is not displaying the web page content, giving script errors prompt

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 2 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
techie024
Posts: 3
Last visit: Sun Nov 14, 2021 11:47 pm

WebBrowser control is not displaying the web page content, giving script errors prompt

Post by techie024 »

Hi,

WebBrowser control of Powershell Studio 2019 is not displaying the web page content properly, giving script errors prompt.
Hence kindly assist here.
User avatar
brittneyr
Site Admin
Posts: 1655
Last visit: Thu Mar 28, 2024 3:14 pm
Answers: 39
Been upvoted: 30 times

Re: WebBrowser control is not displaying the web page content, giving script errors prompt

Post by brittneyr »

The WebBrowser control is based off IE and therefore some websites may not view correctly. There is a registry setting to improve this by making sure the control is using the latest IE version.

We have provided a snippet in the Snippet Pane called Set-WebBrowserEmulation (Preset->PowerShell->GUI).

The snippet is also mentioned in the following article:
https://www.sapien.com/blog/2020/11/05/ ... ebbrowser/
Brittney
SAPIEN Technologies, Inc.
This topic is 2 years and 3 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked