06-12-2017 02:38 PM
I want to login webpage through labview. I can open the webpage, input the password, but I can find the name id for the 'login' button. Base on code, the 'login' button is coded as javascript not form submit. Any idea how I can click that 'login' button. The portion of webpage is like:
<br />
<form name="logform" action="login" method="post" onsubmit="ProcessForm()">
<div class="container">
<br />
<input type="password" placeholder="Enter Password" name="password" value="" required>
<br />
<button>Login</button>
<br />
The ProcessForm() is the function
Thanks for your help
06-13-2017 09:01 AM
You can try using the javascript click() method as outlined in the following link:
HTML DOM click() method - https://www.w3schools.com/jsref/met_html_click.asp
The following link might also be useful to learn more:
Simple JavaScript and HTML with LabVIEW Web Services - http://forums.ni.com/t5/LabVIEW-Web-Development/Getting-Started-Series-Simple-JavaScript-and-HTML-wi...
Please let me know if you have any questions.
06-14-2017 06:27 PM
Thanks Shreyas.
But in example, the clicked button all has "id" and you can get that element name. In my case, I can not find the element for that login button.
06-15-2017 04:43 PM
Is it possible for you to add a custom "id" element to the code?