03-11-2016 07:42 AM
Hi all,
I have an IP camera with a web interface, where you can enter the web address into a web browser and click on screen buttons to perform actions - one of those being taking a snapshot.
I want to be able to replicate this in LabVIEW.
There is also a log in screen when you first navigate to the page, and I'm not sure if I'd need to enter those details first if I'm accessing it programmatically (It appears to be the same HTML page that hides the main screen until you log in).
I have attached screenshots of the login page and the main screen with the relevant elements highlighted, and copies of the HTML files and the javascript file (which is minified so it's difficult to read I'm afraid). If anybody could give me some pointers on how to proceed with this and how to click the button I would really appreciate it.
I did a search on the forums and found this page that discusses filling in a form
http://forums.ni.com/t5/LabVIEW/How-to-fill-out-and-submit-a-web-form-using-LabVIEW/td-p/289527
I tried to replicate it on the log in screen and I got it to fill in the fields, but I don't know how to click the button and when I tried to create a reference like discussed I just got an error.
Solved! Go to Solution.
03-11-2016 09:00 AM
I haven't looked at your files or the attachment in the other thread, but I'm assuming it uses the ActiveX browser, since it's old. The .NET browser is somewhat better, and you can see a basic example showing a click here - http://forums.ni.com/t5/LabVIEW/Mouse-event-in-embedded-internet-explorer/m-p/2853440/highlight/true...
That code doesn't include handling the page loaded event, etc., but it does show the basic parts.
03-14-2016 07:46 AM
Hi,
Thanks for your advice, I had a look at the .Net browser and the example you posted and after playing around a bit I eventually got it to work.
I've attached my code for anyone else who might have a similar problem.