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

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

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

/**
 * Number of milliseconds.
 */
public class TimeDelta {

    private final java.lang.Number timeDelta;

    public TimeDelta(java.lang.Number timeDelta) {
        this.timeDelta = java.util.Objects.requireNonNull(timeDelta, "Missing value for TimeDelta");
    }

    private static TimeDelta fromJson(JsonInput input) {
        return new TimeDelta(input.nextNumber());
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy