Running the latest PowerShell Studio 2023 version I can add a webview control correctly and browse a website.
https://www.sapien.com/blog/2022/02/14/ ... 2-control/
I can also set values on forms correctly. e.g. changing a textbox value to something else
I'm interested in reading from a form on a website's form values. e.g. working out the txtDescription
Example code for setting a value that works correctly:
Code: Select all
$webview.add_NavigationCompleted({
$webview.ExecuteScriptAsync("document.getElementById('txtDescription').value = 'Set some value'")
})
Example html:
Code: Select all
<form>
<input id="txtDescription" name="txtDescription" type="text">
</form>