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

org.openqa.selenium.devtools.domstorage.model.DomStorageItemRemoved 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.domstorage.model;

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

public class DomStorageItemRemoved {

    private final org.openqa.selenium.devtools.domstorage.model.StorageId storageId;

    private final java.lang.String key;

    public DomStorageItemRemoved(org.openqa.selenium.devtools.domstorage.model.StorageId storageId, java.lang.String key) {
        this.storageId = java.util.Objects.requireNonNull(storageId, "storageId is required");
        this.key = java.util.Objects.requireNonNull(key, "key is required");
    }

    public org.openqa.selenium.devtools.domstorage.model.StorageId getStorageId() {
        return storageId;
    }

    public java.lang.String getKey() {
        return key;
    }

    private static DomStorageItemRemoved fromJson(JsonInput input) {
        org.openqa.selenium.devtools.domstorage.model.StorageId storageId = null;
        java.lang.String key = null;
        input.beginObject();
        while (input.hasNext()) {
            switch(input.nextName()) {
                case "storageId":
                    storageId = input.read(org.openqa.selenium.devtools.domstorage.model.StorageId.class);
                    break;
                case "key":
                    key = input.nextString();
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new DomStorageItemRemoved(storageId, key);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy