如何从(C#)Windows应用程序填写HTML文本框

问题描述:

我想在Windows应用程序中执行以下操作:

1. 手动打开浏览器并导航到URL.
2.当我在浏览器窗口中使用正确的URL时,我想通过Windows应用程序在该页面的html文本框中填写数据.
3.完成后,我想按一个按钮.

说明:-
1.URL(https://www.exple.com/login.html)已在任何网络浏览器(例如Mozilla Firefox或本地系统上的Google Chrome)中已打开. 它由两个文本框组成,例如用户名和密码.
2.我要在 Username&中填写数据登录html页面上的密码文本框
3.在C#Windows应用程序中单击提交"按钮时,输入数据(用户名和密码)从C#Windows应用程序获取到URL(https://www.exple.com/login.html).

注意:
我的浏览器窗口中当前使用的是谷歌浏览器和Mozilla Firefox .
Internet Explorer (IE)从未在浏览器窗口中使用.

请帮帮我

在此先感谢.
mrlingam

I would like to do the following from a windows application:

1. Manually Opened a browser and navigate to a URL.
2. When i am at the correct URL in my browser window, i want to fill in data in the html textboxes on that page from my windows application.
3. When that is done i want to press a button.

Description:-
1.The URL (https://www.exple.com/login.html ) had already opened in anyone web browsers such as Mozilla Firefox or Google Chrome on local System.
It consists of Two Textboxes such as Username and Password .
2.I Want to fill in data in Username & Password Textbox on login html page
3.The Input (username & Password ) data is taken from C# Windows Application to URL(https://www.exple.com/login.html ) When Clicked Submit Button in C# Windows Application.

Note:
Google Chrome and Mozilla Firefox is currently used in my browser Window.
Internet Explorer(IE) never used in browser Window.

Please help me

Thanks in Advance .
mrlingam

您还等什么呢?

这是询问者的期望:
1. 先尝试您要做什么!
2.制定看起来像问题/无法解决的问题.

试试看,告诉他们是否遇到问题.
成员将很乐意为您提供帮助.
And what exactly are you waiting for?

Here is what is expected of enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.