LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

webpage manipulation

Solved!
Go to solution

I tried using the 'Reset' element in the invoke node for 'Form Element' but that doesnt seem to help.

I still believe the problem lies with the 'afterBegin' placement of the string.

Although I'm not sure what allowable inputs are for that node.

Cory K
0 Kudos
Message 11 of 18
(1,605 Views)

Hi cory,

you can reload the webside, maybe it's a solution for you.

See this link for more information.

 

Mike

Message 12 of 18
(1,581 Views)
Solution
Accepted by Cory_K

Try using setAttribute with the attribute set to "value" instead of insertAdjacentText.

setAttribute.png

Message 13 of 18
(1,567 Views)

You were correct nathan, using setAttribute cleared out the last entry, and entered the new one.

 

In case anyone needs to see how the entire VI worked, once completed, I attached it as a reference.

At the moment, it logs into Facebook, however it can be modified to log in to other web pages.

Cory K
0 Kudos
Message 14 of 18
(1,543 Views)

Two minor suggestions:

1) If you right-click on "ReadyState" and create a constant, you'll get an enumeration which you can use in place of the number 4.

2) A couple of your ActiveX references aren't closed.  Annoying as it is, the recommendation is that you close every reference.  That means that every time you have a reference out terminal that's not connected to anything, it should be connected to Close Reference, with a few exceptions.  Those exceptions are when a wire forks (you only need to close one of them), and for ActiveX objects that are on the front panel (such as the web browser) rather than being created during the execution of your code (for example the IHTMLDocument2 reference).

Message 15 of 18
(1,541 Views)

Just out of curiosity, can you please explain number 2.
I believe you that this is a correct coding practice, I would just like to know why.

Does it keep the reference in memory if I dont close it?
If so, until when? Next time I run the VI? Until I close LabVIEW?

 

I just like to learn the correct way to do stuff so I dont always make ad-hoc n00b code Smiley Very Happy

Cory K
0 Kudos
Message 16 of 18
(1,539 Views)

Cory K wrote:

Does it keep the reference in memory if I dont close it?
If so, until when? Next time I run the VI? Until I close LabVIEW?


The references stay in memory, but I don't know how long.  According to this post, LabVIEW closes up references when the top-level VI stops running.

Message 17 of 18
(1,536 Views)

Hi Cory,

 

I have a silimar project now on Amazon.com

 

1) Log in https://sellercentral.amazon.com/gp/homepage.html

2) click inventory Tab

3) select the file type in a dropdown box

4) browse to inventory file and "click" upload

5) "click" log out

 

 

Can you show me some of your code ? donghuali@gmail.com

Thanks !

0 Kudos
Message 18 of 18
(1,367 Views)