11-12-2012 01:41 PM
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
Solved! Go to Solution.
11-13-2012 05:30 PM
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
11-13-2012 09:08 PM - edited 11-13-2012 09:09 PM
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.
11-14-2012 12:09 PM
As far as I know, there is no way to send click actions using this library.
11-14-2012 01:30 PM
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.
11-14-2012 11:39 PM
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
11-15-2012 11:35 AM
@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.