08-20-2010 03:55 PM
This issue has come up a few times before on the forums, but I can't find quite what I'm looking for.
Goals:
1) To log in to a website using a simple text name and password.
2) Once logged in, modify HTML forms, etc
Rather than using Datasocket read/writes, I have found it easier to use the ActiveX Web Browser control.
- Please open the attached VI.
- Enter a username and password.
- Run the VI
You will notice that the page loads. It then correctly enters the inputted username.
However, it throws an error before entering the password.
Can someone see what I am doing wrong?
08-20-2010 04:18 PM
Please disregard this post.
The issue was simply a typo.
For the password element, I typed "password" when I should have entered "txtPassword"
Thanks anyway
08-20-2010 05:21 PM - edited 08-20-2010 05:30 PM
If the web page uses forms, it is relatively easy to enter and retrieve data.
However, once I enter the data, I need to hit the "Submit" button.
How would I do this?
Here is the more recent version of the VI.
08-20-2010 05:38 PM
Okay, I answered my own question (again).
Instead of using setAttribute as you would use for a text field,
you can just use "click" on the "submit" field.