Я использую библиотеку Htmlunit для подключения к этому сайту http://www.tellmemorecampus.com/login.aspx, но когда я использую метод onlick в HtmlAnchor, ничего не происходит ...
это мой код:
HtmlTextInput emailField = login.getHtmlElementById("userNameText");
emailField.type(email); // works
HtmlPasswordInput passwordField = login.getHtmlElementById("passwordText");
passwordField.type(password); // works
HtmlAnchor submit = login.getHtmlElementById("btnSignIn");
HtmlPage result = submit.click(); // doesn't work
System.out.println(result.asText()); ```
I have this
``` Rosetta Stone
Choose an Interface Language
Rosetta Stone® Language Learning Suite
Rosetta Stone® Advantage
Welcome!
test@mail.com
sqsqs
Sign In
Forgot your user name or password?
Terms and Conditions
Privacy Policy
Agreements
Help
Copyright © 2014 Rosetta Stone Ltd. All rights reserved. ```
Thank you.