org.openqa.selenium.devtools.v90.dom.model.NodeId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v90 Show documentation
Show all versions of selenium-devtools-v90 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
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();
}
}