How to click a button on an ASP.NET web page programmatically?

前端 未结 9 1378
既然无缘
既然无缘 2021-02-09 10:06

I am trying to figure out how to click a button on a web page programmatically.

Specifically, I have a WinForm with a WebBrowser control. Once it navigates to the targe

9条回答
  •  北荒
    北荒 (楼主)
    2021-02-09 10:42

    You posted a comment along the lines of not wanting to use a client side script on @Phunchak's answer. I think what you are trying to do is impossible. The only way to interact with the form is via a client side script. The C# code can only control what happens before the page is sent out to the browser.

提交回复
热议问题