Hi,
I'm having a problem controlling a website, namely I can submit forms with labview. In the code I have attached I use a free email provider (www.freemail.hu) as an example. If you navigate to this site you just find yourself on a login page and if you click on the blue button without entering any text to the textfields above:
you'll see that the page responds with red texts saying you need to enter a username / password.
In the page I need to control the scenario is pretty much the same. The problem though is it seems that I can't control the button. I have no problems controlling the text fields and also no problem finding the button itself, its just that I can't automate the click event.
Interestingly I have no problem automating the click event on the gray (register) button. That works without any issues and the browser in my labview VI redirects to the new page.
The other interesting thing I have found is that if pause my VI once the page is loaded I can press the register button manually and it works, but no matter if I press the blue button it does not reload the page so the red warnings don't appear.
Another thing is that if I use the chrome's developer tools and enter the following lines to the console:
x = document.getElementsByName("loginBtn")[0]
x.click()
then the page works fine.
Its really beyond my knowledge how the two buttons work differently however I'm calling the same method for both of them and if I just use native javascript than both works.
Any help would be appreciated. Thanks!