如何通过Webbrowser将密码设置为

如何通过Webbrowser将密码设置为

本文介绍了如何通过Webbrowser将密码设置为“创建帐户”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#中的应用程序,试图获取一个文本框将textBox.Text发送到HTML标记值...这适用于其他所有内容(例如用户名/电子邮件,DOB,Captcha),但是不适用于网站上的密码。相信我,我一直在研究这个,没有任何作用。但我注意到,如果我进入WebBrowser开始手动输入密码文本框而不是通过按钮点击/代码,它可以工作,并且密码保护如下:

[]



I'm Currently working on an application in C#, trying to get a textbox to send the textBox.Text to HTML tag value... which works for everything else (ex. Username/email, D.O.B., Captcha), BUT won't work for the password on the site. Trust me, i have been researching this, and nothing works. But i have noticed if i go into the WebBrowser an start typing in the password textbox manually rather than through a button click/code, it works and it's password protected like so:
http://prntscr.com/4aorj1[^]

WebBrowser.Document.GetElementById("account_password").SetAttribute("value", password.Text);
           WebBrowser.Document.GetElementById("confirmPasswordField").SetAttribute("value", password.Text);





[]



上述代码适用于confirmPasswordField但不适用于account_password。 :/它将account_password放在PLAIN TEXT而不是密码保护,这就是问题。



[ ]



如果有人可以提供帮助,我们将非常感谢,任何反馈都会有所帮助。感谢您的时间。 :)



http://prntscr.com/4aor1h[^]

The above code works for "confirmPasswordField" but not account_password. :/ It puts the "account_password" in PLAIN TEXT rather than password protected which is the problem.

http://prntscr.com/4aoqss[^]

If anyone could help, it would be greatly appreciated, any feedback would be helpful. Thank you for your time. :)

推荐答案


这篇关于如何通过Webbrowser将密码设置为“创建帐户”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-06 01:06