All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openqa.selenium.devtools.v90.media.model.PlayerId Maven / Gradle / Ivy

Go to download

Selenium automates browsers. That's it! What you do with that power is entirely up to you.

There is a newer version: 4.0.0-beta-4
Show newest version
package org.openqa.selenium.devtools.v90.media.model;

import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;

/**
 * Players will get an ID that is unique within the agent context.
 */
public class PlayerId {

    private final java.lang.String playerId;

    public PlayerId(java.lang.String playerId) {
        this.playerId = java.util.Objects.requireNonNull(playerId, "Missing value for PlayerId");
    }

    private static PlayerId fromJson(JsonInput input) {
        return new PlayerId(input.nextString());
    }

    public String toJson() {
        return playerId.toString();
    }

    public String toString() {
        return playerId.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy