yingyingqiqi · GitHub

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

Read the original on github.com ↗