Login to Google Account using HtmlUnit

旧巷老猫 提交于 2019-12-02 08:13:48

I think what you did wrong was when you were looking for the "next" and the "sign in" buttons.

I'm pretty sure you need to do: List<HtmlInput> buttonInputs = loginForm.getInputsByName("signIn");

Instead, you put List<HtmlInput> buttonInputs = loginForm.getInputsByValue("signIn");

which isn't right because both the buttons have the same name of "signIn" when the "next button" has a value of "Next" and the "sign in" button has a value of "Sign in".

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!