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

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

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

/**
 * Unique DOM node identifier.
 */
public class NodeId {

    private final java.lang.Integer nodeId;

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

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

    public Integer toJson() {
        return nodeId;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy