I didn't make myself clear
An error occurred in this section of the comment.So the latest project source code is shown:
|
* BrowserVersion browser = new BrowserVersion.BrowserVersionFactory(FF68) |
|
* .setApplicationName(applicationName) |
|
* .setApplicationVersion(applicationVersion) |
|
* .setUserAgent(userAgent) |
|
* .build(); |
BrowserVersionFactory.class does not exist in the latest version.This is the previous version.
We can not create a different browser setup by using the BrowserVersionFactory.
We use BrowserVersionBuilder.class, In the newest warehouse:
|
/** |
|
* Creates a new BrowserVersionBuilder using the given browser version |
|
* as template for the browser to be constructed. |
|
* @param version the blueprint |
|
*/ |
|
public BrowserVersionBuilder(final BrowserVersion version) { |
* String applicationName = "APPNAME";
* String applicationVersion = "APPVERSION";
* String userAgent = "USERAGENT";
* int browserVersionNumeric = NUMERIC;
*
* BrowserVersion browser = new BrowserVersion.BrowserVersionBuilder(BrowserVersion.CHROME)
* .setApplicationName(applicationName)
* .setApplicationVersion(applicationVersion)
* .setUserAgent(userAgent)
* .build();
*
Sorry to bother you again
I didn't make myself clear
An error occurred in this section of the comment.So the latest project source code is shown:
htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java
Lines 46 to 50 in 97dfdd5
BrowserVersionFactory.class does not exist in the latest version.This is the previous version.
We can not create a different browser setup by using the BrowserVersionFactory.
We use BrowserVersionBuilder.class, In the newest warehouse:
htmlunit/src/main/java/com/gargoylesoftware/htmlunit/BrowserVersion.java
Lines 780 to 785 in 97dfdd5
Sorry to bother you again