Click the javascript on the web page programmatically

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 the buttons on the screen to perform actions - one of those being taken a snapshot.

I want to be able to replicate that in LabVIEW.

There is also a log on screen when you navigate to the page first, and I don't know if I would need to go into the details first if I access it programmatically (it seems that the same HTML page which hides the main screen until you connect).

I've attached screenshots of the login page, the main screen with highlighted relevant items and copies of the HTML files and the javascript file (which is minimized, it is hard to read I'm afraid). If someone could give me some advice on how to proceed with this and click on the button I would really appreciate it.

I did a search on the Forum and found this page which deals with 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 reproduce it on the login screen and I managed to fill in the fields, but I do not know how to click on the button and when I tried to create a reference as discussed, I just got an error.

I have not watched your files or accessory in the other thread, but I'm assuming he uses the ActiveX browser, because it is old. The .NET browser is slightly 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 does not include handling loaded events, etc. page, but it shows the basic elements.

Tags: NI Software

Similar Questions

  • access the Web page programmatically

    I need to access a webpage of Ethernet switch to activate certain settings, but I have to do it by programming that my application is used in a manufacturing environment.  Any ideas how I can do this.  I managed to read the page with DataSocket Read, but I don't know how to send data to the page.  Any help will be greatly appreciated.

    Thank you

    Hi nelg87,

    ActiveX and the "DOM" are the only way I know to programmatically manipulate web pages - here's one link with some attachments that can help.

    If you encounter an obstacle, perhaps the switch supports a different control interface, such as SNMP (?)

    See you soon!

  • For the last week, I had problems on the Web pages in the browser look at a box itself (the box that actually shows the site), I can't click on anything anyone in the top thumb or inch - and a quarter. What does this, and how can this be repaired?

    This applies to all links and anything in this field unless it falls below, then I can click on it. The only thing that seems to get around it, is on a bar at the top of a Web search, I can click and type, but there is no text cursor.

    This problem occurs even when I scroll down, the same area of a Web site can be clicked, because of this problem.

    This does not affect the toolbars, bookmarks, etc..

    Recently, the Yahoo toolbar and the extension of Babylon have been reported because of this problem. They appear to overlap invisibly on the top of the display of the web page. You have both installed, uninstall or disable them / it or see if an update is available that solves the problem.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    You have several older versions of Java installed Console Java did not clean up when updating. Follow these instructions to remove older versions:

    Your old extensions Java Console:

    • Java Console 6.0.05 {CAFEEFAC-0016-0000-0005-ABCDEFFEDCBA}
    • Java Console 6.0.07 {CAFEEFAC-0016-0000-0007-ABCDEFFEDCBA}
    • Java Console 6.0.12 {CAFEEFAC-0016-0000-0012-ABCDEFFEDCBA}
    • Java Console 6.0.13 {CAFEEFAC-0016-0000-0013-ABCDEFFEDCBA}
    • Java Console 6.0.14 {CAFEEFAC-0016-0000-0014-ABCDEFFEDCBA}
    • Java Console 6.0.15 {CAFEEFAC-0016-0000-0015-ABCDEFFEDCBA}
    • Java Console 6.0.21 {CAFEEFAC-0016-0000-0021-ABCDEFFEDCBA}
    • Java Console 6.0.22 {CAFEEFAC-0016-0000-0022-ABCDEFFEDCBA}
    • Java Console 6.0.23 {CAFEEFAC-0016-0000-0023-ABCDEFFEDCBA}
    • Java Console 6.0.24 {CAFEEFAC-0016-0000-0024-ABCDEFFEDCBA}
    • Java Console 6.0.26 {CAFEEFAC-0016-0000-0026-ABCDEFFEDCBA}

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • When I search something and click the Web site in the search results, I get nothing and the tab says something like "nclk (Image GIF 1 x 1 pixel)" what should I do to display the Web page?

    I just switch to Firefox this morning, but I used it in the past. I set Yahoo as my homepage, and it opens fine when I start Firefox but if I type something in the search bar, such as Wal-Mart or ebay it will display the search results, but when I click on the page I want to open, I get something like "nclk (Image GIF 1 x 1 pixel)" on any of the Web pages I have to choose. If I put www.walmart.com in the address bar, it works fine. What should I do?

    Using Kaspersky? This error is usually caused by a parameter in Kaspersky. In the Kaspersky Firewall section, under filter turn off the blocker of banner advertising (may be called anti-banner).

  • bookmark to right click on the web page, providing no files options

    Normally, when I want to bookmark a Web page, I click with the right button on the web page and select "bookmark this page", then additional selection choices come allowing me to choose save folder options, change the description of the Web site properties, etc. For several days all options only getting more - i.e. when I right click, choose 'bookmark this page' and it records just to the bottom of the list by default. Since I rebooted thinking it could heal but without success. I checked under tools/options but can't seem to find a cure. Help, please. I am running Firefox 3.5.9 w / Windows XP sp3.

    I just started to use the cable of the Charter - perhaps extensions that it installed because of the problems. See the list below.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).
    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

  • Why my internet explore stops when I click on certain links, when I'm on the web page of someones

    original title: slightly annoyed

    Why my internet explore stops when I click on certain links, when I'm on the web page of someones

    Hello

     
    What operating system is installed on your computer?
     
    What is the version of Internet Explorer you are using?
     
    Is there an error code or the message that if displayed when you click on a link in the browser?
     
    Check out the link and follow the steps.
    Tips for solving problems when Internet Explorer hangs or stops working

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-solving-problems-with-Internet-Explorer

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

  • by clicking on link in windows mail open the Web page in Word

    Problems with links in Windows Mail

    When I click on a link in an e-mail message in windows mail, Microsoft office opens and the Web page in Word. Any ideas how can I fix?

    Hi traymos,

    ·         Remember to make changes to the computer, after which the issue started?

    I suggest you to make sure that Internet Explorer is configured as web browser by default. Take a look at the following links:

    Change the programs that Windows uses by default

    by clicking on the http links in windows mail will open word instead of the browser

    I hope this helps.

  • I downloaded the Adobe Premiere Pro CS6 product for free trail.  Now, there is one last month, when I try click on 'buy now' cannot display the web page.  What is the problem?  The trail is over?

    I downloaded the Adobe Premiere Pro CS6 product for free trail.  Now, there is one last month, when I try click on 'buy now' cannot display the web page.  What is the problem?  The trail is over?

    Hello

    Contact please contact customer service

    Kind regards

    Gag

  • How to prevent large gaps on the Web page when you use the behaviours slide?

    I searched the forums for similar problems with application behavior slide to the elements through the DW CS5 interface and find a useful post titled "problem with Spry Applying"Slide Effect"so now my slide effects works the way I want to, except instead of dragging out a legend after clicking on an image I slip on a list of text items when you click on a section of text.  It works, but there is a gap when the first load of the Web page. How can I remove/avoid this great whitespace to appear?

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"

    < title > test Document < /title >

    "<!-< script type =" text/javascript"src ="... / SpryAssets/SpryEffects.js "> < / script > - >"

    < script src = "SpryAssets/SpryEffects.js" type = "text/javascript" > < / script > "

    < script type = "text/javascript" >

    function MM_effectSlide (targetElement, duration, of, to, toggle)

    {

    Spry.Effect.DoSlide (targetElement, {duration: duration,:, to: to, turn on/off: toggle});

    }

    < /script >

    < / head >

    < body >

    < p > < / p >

    < p > < / p >

    < style type = "text/css" >

    #LOdiv {visibility: hidden ;}}

    #Countries {visibility: hidden ;}}

    < / style >

    < p > < / p >

    < p > < / p >

    (< div id = "Latte" onclick = "MM_effectSlide ('LOdiv', 1000,"0% ", 100%", true) ">"

    < p > < strong > drop-down list One + show < facilities > < / p >

    < / div >

    < div id = "LOdiv" >

    < div >

    -Item A < br / >

    -Point B < br / >

    -Point C < br / >

    -Section D < br / >

    -Point E < br / >

    -Item F < br / >

    -G spot < br / >

    -Point H < br / >

    -I point < / div >

    < / div >

    < / div >

    (< div id = "ListTwo" onclick = "MM_effectSlide ('country', 1000,"0% ", 100%", true) ">"

    < p > < strong > list two + show < facilities > < / p >

    < / div >

    < div id = 'Country' >

    < div >

    -USA < br / >

    -Germany < br / >

    -France < br / >

    -Italy < br / >

    -Japan < br / >

    -China < br / >

    < / div >

    < / div >

    < span style = "width: 990px;" height: 21px' > < img width = 990 height = 21

    SRC = "image386.gif" >

    </span >

    < / body >

    < / html >

    Hello

    in my opinion, this technique is not designed for the two panels. To do this you must use the "Spry several sliding elements"-technique in which panels will be triggered by the individual buttons. "" Here is the link for it:

    http://labs.adobe.com/technologies/spry/samples/effects/multiple_slides_sample.html.

    Hans-Günter

  • Changes to the web page only appear not

    I use Dreamweaver CS3, I've made a few changes text to one of my web pages, I clicked on save, went to check on preview browser and it isn't here. What I am doing wrong?

    Thank you

    If you downloaded files to the server and then surfed on your web page online, and changes are not displayed, your browser may have just cached the old version of the web page.

    Web browsers cache things like html, javascript, css, images, framesets, and so on so that your browsing experience is faster you never see again the page.

    Press and hold the 'SHIFT' on your keyboard while at the same time a left click on the button "Reload" in your browser to get the freshest version of the web page you just downloaded.

    Please note that this technique does not always work if your web page uses frames.  If such is the case, do a right click in each picture and select reload from the context menu.

  • Firefox does not open in full screen on the task bar and I have to go over it to see the web page.

    Firefox does not open in full screen on the task bar and I have to go over it to see the web page.

    Firefox window is sometimes "off screen" somehow. Often, you can force it to appear on the screen by right clicking on the thumbnail image just above the taskbar and choose expand. Does it work?

    A possible cause for this is that the file that stores the positions and sizes of window is corrupt. You can delete this file and Firefox will return to standard window resizing.

    #1 method: If you can get a zoomed window:

    Open the settings folder (AKA Firefox profile) current Firefox help

    • button "3-bar" menu > "?" button > troubleshooting information
    • (menu bar) Help > troubleshooting information
    • type or paste everything: in the address bar and press Enter

    In the first table of the page, click on the view file"" button. This should launch a new window that lists the various files and folders in Windows Explorer.

    Leave this window open, switch back to Firefox and output, either:

    • "3-bar" menu button > button "power".
    • (menu bar) File > Exit

    Pause while Firefox finishing its cleanup, then rename xulstore.json to something like xulstore.old. If you see a file named localstore.rdf, rename this to localstore.old.

    Launch Firefox back up again. Windows normally appear again?

    #2 method: If you can not get a Firefox window for all:

    Close Firefox by right clicking the icon in the taskbar > close all windows.

    Using the Run dialog box (windows key + R) or the start search bar menu type or paste the following and press Enter to drill down to the profiles folder:

    %APPDATA%\Mozilla\Firefox\Profiles
    

    Here you can see a folder - in this case, double-click that - or more than one case - in this case, double-click on in what looks like the most recently updated.

    Scroll down and rename xulstore.json to something like xulstore.old. If you see a file named localstore.rdf, rename this to localstore.old.

    Launch Firefox back up again. Windows normally appear again?

    Then, to re - light bars, you can use one of the following methods to view the list of the toolbar, and then select the desired bars it:

    To activate the menu bar, toolbar bookmarks or other bars, click it in the list.

  • Is there a option of zoon of the Web pages with Mozilla Firefox, if I have trouble reading the small print?

    I take a class any web business, and I can't find a lot of the functions that they speak.

    Hello
    Have you tried the Firefox zoom feature? This initiative will increase the size of the web pages.

    • To make things bigger, press Ctrl and + at the same time.
    • To make things smaller, press Ctrl and - at the same time.
    • Pour reinitialiser to reset the size of return to normal, press Ctrl and 0 at the same time.

    You can also use the NoSquint add-on to change the zoom level by default for all websites at the same time. After setting your overall zoom level, you can still adjust the zoom on different sites.

    With the help of NoSquint:

    1. After installation of NoSquint, make sure you have the add-on bar displayed:

      • Click the new tab button ("+") or a box empty bar tab to the right of the item and choose the module bar on the shortcut menu.
    2. Click on the % in the bar of the add-on call site preferences, then click the global settings button, then the zoom tab.
      • You can experiment with sizes greater than 125%, but it is not recommended that you will more than 150%, unless you have a large screen high resolution.

    If there are sites that are still a concern, feel free to post their URLs.

    Please let us know if this helped you!

    Thank you.

  • Back to the same place of the web page

    When I click on the arrow to the left happens to me on web page, I was ahead, but there also go to the top of the page, but not to the task, I was working, so I have to scroll down to this place. How can I get back to this place on the web page?

    Three ways:
    1. click the link
    2 {Ctrl + click} link
    3. right click on the link and use open link in a new tab

  • Save the web page

    Using Safari, if you are on a Web page and click file > save as, you will be able to save the contents of this Web page on your local computer, even if the content leaves the original source of the web in the future?

    Thank you

    It should stay even if the web page changes.

  • I can't open the web pages included in emails.

    The e-mails often contain links to a Web page. When I click on these links, nothing happens. The Web page will not open.

    jmildred

    https://support.Mozilla.org/en-us/KB/hyperlinks-in-messages-not-working

Maybe you are looking for

  • Problems printing from the internet

    Printer HP PSC all-in-one will not print on the internet, even if it will print from word on Windows 8.  There is no error message and nothing in queue for print

  • ContactManager Lenovo K3 Note (k50a40) is very slow

    The application by default - ContactManager is extremely slow. First, the list of Contacts displays a lot of duplicates for a name. It is virtually impossible to merge / join these entries. This happens with almost all of the contacts in my phone boo

  • Acquisition of data stops at data acquisition

    Hello See the attached VI.  Data acquisition acquires data without problem for a few minutes, and then suddenly the event structure does nothing but the timeout.  I'm deliberately ignore the 200279 error that is generated when two triggers are too cl

  • A3A10 time is 1 hour behind when I turn it on

    The tablet of my Acer A3A10 time is 1 hour late when I turn it on. I went to settings > Date & time > automatic date & time is enabled on the zone is set to Eastern Daylight Time, but it changes berhind everytime I turn it on at a time.  I looked on

  • How Adobe PDF for Windows Table conversion

    I have a list of a club in which I need to rearrange the columns. He was sent to the Adobe format, I have converted to PDF but can't seem to open in document Windows except in an indecipherable encoding format. Is it possible to do what I want to do?