开发者

use winforms application to detect form fields in a browser

I have a requirement to create a windows form control which has to detect username, password and address fields in a browser.. so when i navigate to a page that asks for a username or password, the application asks me if it should fill in the data for开发者_如何学Go me.

How do i get the form fields in a browser?

and how do i fill them in, and then submit?

thanks in advance


I think it makes more sense to write an addin/ActiveX control. That way it may better interact with the browser object model. I guess, the tool must intercept the HTTP request and parse for <input name="password> etc.

Otherwise, you will need to write low-level hooks that attach a 'spy' module. This approach is too error-prone and browser- and platform-dependent.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜