Rank: Newbie Groups: Member
Joined: 5/26/2019 Posts: 2
|
Hi, i want to click a button. How can i do it?
Button <input type="submit" name="login" value="Login" class="btn btn-lg btn-success btn-block">
i try this but not work webView1.EvalScript("document.getElementsByName('login').click();");
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,218
|
Hi,
You can try to use form.submit instead of button.click. button.click is a user action and the Chromium browser engine forbids such script calls without actual user interaction. Since the result of a button.click is to trigger form.submit, you can try to call form.submit directly.
Thanks!
|