ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Form Data

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?

Cory K
0 Kudos
Message 1 of 4
(3,682 Views)

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 Smiley Tongue

Cory K
0 Kudos
Message 2 of 4
(3,672 Views)

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.

Cory K
Message 3 of 4
(3,664 Views)

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.

Cory K
0 Kudos
Message 4 of 4
(3,658 Views)