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

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

/**
 * Fired when `Element`'s attribute is removed.
 */
public class AttributeRemoved {

    private final org.openqa.selenium.devtools.v90.dom.model.NodeId nodeId;

    private final java.lang.String name;

    public AttributeRemoved(org.openqa.selenium.devtools.v90.dom.model.NodeId nodeId, java.lang.String name) {
        this.nodeId = java.util.Objects.requireNonNull(nodeId, "nodeId is required");
        this.name = java.util.Objects.requireNonNull(name, "name is required");
    }

    /**
     * Id of the node that has changed.
     */
    public org.openqa.selenium.devtools.v90.dom.model.NodeId getNodeId() {
        return nodeId;
    }

    /**
     * A ttribute name.
     */
    public java.lang.String getName() {
        return name;
    }

    private static AttributeRemoved fromJson(JsonInput input) {
        org.openqa.selenium.devtools.v90.dom.model.NodeId nodeId = null;
        java.lang.String name = null;
        input.beginObject();
        while (input.hasNext()) {
            switch(input.nextName()) {
                case "nodeId":
                    nodeId = input.read(org.openqa.selenium.devtools.v90.dom.model.NodeId.class);
                    break;
                case "name":
                    name = input.nextString();
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new AttributeRemoved(nodeId, name);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy