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

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

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

/**
 * Information about the frame affected by an inspector issue.
 */
public class AffectedFrame {

    private final org.openqa.selenium.devtools.v90.page.model.FrameId frameId;

    public AffectedFrame(org.openqa.selenium.devtools.v90.page.model.FrameId frameId) {
        this.frameId = java.util.Objects.requireNonNull(frameId, "frameId is required");
    }

    public org.openqa.selenium.devtools.v90.page.model.FrameId getFrameId() {
        return frameId;
    }

    private static AffectedFrame fromJson(JsonInput input) {
        org.openqa.selenium.devtools.v90.page.model.FrameId frameId = null;
        input.beginObject();
        while (input.hasNext()) {
            switch(input.nextName()) {
                case "frameId":
                    frameId = input.read(org.openqa.selenium.devtools.v90.page.model.FrameId.class);
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new AffectedFrame(frameId);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy