Hi Support,
I'm trying to click a button (image) on a web page, but I can not.
Before I post the data of user name and password as follows, and it works:
Code: Visual Basic.NET
WebView1.EvalScript("document.getElementsByName('userName')[0].value = " & "'" & user & "'" & ";")
WebView1.EvalScript("document.getElementsByName('password')[0].value = " & "'" & pw & "'" & ";")
Then I try to run the clicks in several ways but without success:
Code: Visual Basic.NET
WebView1.EvalScript("document.getElementById('LoginFom_button_value_login').Click();")
I thought of a problem of focus and so I tried to first insert the following instructions:
Code: Visual Basic.NET
WebView1.EvalScript("document.getElementById('login-form').Submit();")
But it does not solve the problem
The code of the button in the web page is as follows:
Code: HTML/ASPX
<input type="image" id="LoginFom_button_value_login"
name="action:Login_executeLogin" value="Login"
src="https://www.sitexyz.com/btn.png"
alt="Login"/>
How I can click this button (image)?
Thank You