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

org.openqa.selenium.devtools.v90.runtime.model.UnserializableValue 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.runtime.model;

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

/**
 * Primitive value which cannot be JSON-stringified. Includes values `-0`, `NaN`, `Infinity`,
 * `-Infinity`, and bigint literals.
 */
public class UnserializableValue {

    private final java.lang.String unserializableValue;

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy