Skip to content

I have confirmed again that there is a comment error #105

@yingyingqiqi

Description

@yingyingqiqi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions