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

org.openqa.selenium.devtools.page.model.ScriptIdentifier 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-rc-1
Show newest version
package org.openqa.selenium.devtools.page.model;

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

/**
 * Unique script identifier.
 */
public class ScriptIdentifier {

    private final java.lang.String scriptIdentifier;

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy