I'm new to javascript but working on a vb.net application with ViewWeb2 control and need to set the value of an element on the EasyShip website.
Basically, I have a USB scale attached to the computer with a vb.net app that reads the weight from the scale and I want to programmatically update the weight on the page instead of having to key it in manually.
I found some code to read the value of an element on the google site and it worked great, here's the commands:
WebView21.Source = New Uri("http://google.com")
Dim strGoogleSearchValue As String = Await WebView21.ExecuteScriptAsync("document.getElementById('gbqfbb').value")
However, I can't figure out how to get or set the value of the elements on EasyShip.com. I don't see the element id, this is what I see when I inspect the page:
<input aria-invalid="false" name="order.parcels.0.totalWeight" type="number" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedEnd MuiOutlinedInput-inputAdornedEnd" value="0.258">
Any help would be greatly appreciated.
Thanks
Basically, I have a USB scale attached to the computer with a vb.net app that reads the weight from the scale and I want to programmatically update the weight on the page instead of having to key it in manually.
I found some code to read the value of an element on the google site and it worked great, here's the commands:
WebView21.Source = New Uri("http://google.com")
Dim strGoogleSearchValue As String = Await WebView21.ExecuteScriptAsync("document.getElementById('gbqfbb').value")
However, I can't figure out how to get or set the value of the elements on EasyShip.com. I don't see the element id, this is what I see when I inspect the page:
<input aria-invalid="false" name="order.parcels.0.totalWeight" type="number" class="MuiInputBase-input MuiOutlinedInput-input MuiInputBase-inputAdornedEnd MuiOutlinedInput-inputAdornedEnd" value="0.258">
Any help would be greatly appreciated.
Thanks