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

org.openqa.selenium.devtools.browser.model.WindowID 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.browser.model;

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

@org.openqa.selenium.Beta()
public class WindowID {

    private final java.lang.Integer windowID;

    public WindowID(java.lang.Integer windowID) {
        this.windowID = java.util.Objects.requireNonNull(windowID, "Missing value for WindowID");
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy