我已经制作了一个网页来破解验证码,例如" 1867"。该网页由HTML5&编码。的JavaScript。当我使用资源管理器打开页面时,结果是正确的。然后我想使用HtmlUnit来获取上面的网页结果。但我发现结果总是8888.为什么?我的HtmlUnit代码喜欢这个:
public enum ContractorType
{
Musician = 0
}
public class Contractor
{
public Guid ID { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string ZipCode { get; set; }
public string Phone { get; set; }
public string Description { get; set; }
[DataType(DataType.Date)]
public DateTime CreateDate { get; set; }
[DataType(DataType.Date)]
public DateTime SuspendDate { get; set; }
public byte[] ImageData { get; set; }
public string ImageMimeType { get; set; }
public string ImageName { get; set; }
public bool Suspended { get; set; }
public ContractorType contractorType { get; set; }
public Musician Musician { get; set; }
}
div1,div2,div3,div4等元素应为1,8,6,7。Chrome等浏览器显示结果为1867,但我的java结果为8888.