Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser Click Button Options
Kenshai
Posted: Monday, May 27, 2019 11:27:50 AM
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();");
eo_support
Posted: Tuesday, May 28, 2019 11:26:30 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.