LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

managing web browser automatically

Solved!
Go to solution

hey all,

I am new at this labview and have encounterd a problem with the labview browser. I want the Vi to run as a web-browser and automatically login to a certain website with a given username and password. every time I run it I receive a error that states "A null or previously deleted refnum was passed in as an input." Can anyone help please. I have a Vi that I downloaded from other forums.

 

Thanks

0 Kudos
Message 1 of 7
(3,601 Views)
Solution
Accepted by boodmiester

Hi,

 

I would recommend you check the form name and field names in the HTML document gmail uses.  For example, in the first IHTML Element node you have the string "loginform" wired to the name property.  Google uses "gaia_loginform".  Also, the "pass" string should be changed to "Passwd".  

 

Give it a try after making those changes.

 

Dave

 

 

 

 

Dave C.

Applications Engineer
National Instruments
0 Kudos
Message 2 of 7
(3,568 Views)

Thank you, your advise helps alot.

Do you by any chance know how to "click" on the button through labview? Meaning, I have tried using phrases like "Compose button", "Compose", "cm", etc. but they all didnt work. what do you think?

I have attached the revision Vi of the other one.

I really appreciate you helping me.

 

Thanks again.

0 Kudos
Message 3 of 7
(3,559 Views)

As far as I know, there is no way to send click actions using this library.

Dave C.

Applications Engineer
National Instruments
0 Kudos
Message 4 of 7
(3,544 Views)

You need to determine what action actually occurs when you click the button, and then execute that action.  Most often, that action is "submit."  You can see that the code already does a form submit.  However, you need to make sure you're using the correct form name, and filling in the correct HTML elements.  There's no way to right a generic login VI, you need to customize it for each site that you want to log in to since each one will name the HTML elements differently.

0 Kudos
Message 5 of 7
(3,533 Views)

So I have try custimizing the submission button for "compose" in the HTML element and so far it doesn't work. Do you think you can show me an example from my Vi how to "click" compose?

Thanks

0 Kudos
Message 6 of 7
(3,509 Views)

@boodmiester wrote:

So I have try custimizing the submission button for "compose" in the HTML element and so far it doesn't work. Do you think you can show me an example from my Vi how to "click" compose?


I have no idea what you're asking.  Your VI is called "facebook" but the VI looks like it tries to sign into Gmail.  I don't see a compose button anywhere.

I do not use Gmail so I have no idea what buttons are available after you sign in.  If you're trying to click a link that's available after signing in, you'll have to look at the HTML and see what happens.  It may go to a new URL, in which case you can use the Navigate method to go to that URL.  The Navigate method may also work for Javascript actions in some cases as suggested here.  You might be able to get a reference to the button, and then call the Click method on it.

0 Kudos
Message 7 of 7
(3,498 Views)