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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -