C# Click HTML Button without ID on webbrowser -
I'm trying to code at c # so that a button is clicked on the web browser.
Not a button ID
Here is html:
& lt; Button class = "btn btn-primary" data-rejected = "modal" type = "submit"> log me in & lt; / Button & gt; & Lt; / Form & gt;
How can I click this button without the id?
Using jQuery, which can be done by clicking on a button based on class instead of ID , For example:
$ (document) .ready (function () {$ (".btn"). Click (function () {warning ("bingo"}}) )
Comments
Post a Comment