Htmlunit获取没有id和name的按钮,提交表单

登录通常都是用form表单提交

	获取form表单
	HtmlForm form = home.getForms().get(0);
    // 点击登录获取页面
     DomElement loginBut = form.getInputByValue("登录");
     loginBut.click();

你可能感兴趣的:(htmlunit,htmlunit)