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

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

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

/**
 * A single source for a computed AX property.
 */
public class AXValueSource {

    private final org.openqa.selenium.devtools.v90.accessibility.model.AXValueSourceType type;

    private final java.util.Optional value;

    private final java.util.Optional attribute;

    private final java.util.Optional attributeValue;

    private final java.util.Optional superseded;

    private final java.util.Optional nativeSource;

    private final java.util.Optional nativeSourceValue;

    private final java.util.Optional invalid;

    private final java.util.Optional invalidReason;

    public AXValueSource(org.openqa.selenium.devtools.v90.accessibility.model.AXValueSourceType type, java.util.Optional value, java.util.Optional attribute, java.util.Optional attributeValue, java.util.Optional superseded, java.util.Optional nativeSource, java.util.Optional nativeSourceValue, java.util.Optional invalid, java.util.Optional invalidReason) {
        this.type = java.util.Objects.requireNonNull(type, "type is required");
        this.value = value;
        this.attribute = attribute;
        this.attributeValue = attributeValue;
        this.superseded = superseded;
        this.nativeSource = nativeSource;
        this.nativeSourceValue = nativeSourceValue;
        this.invalid = invalid;
        this.invalidReason = invalidReason;
    }

    /**
     * What type of source this is.
     */
    public org.openqa.selenium.devtools.v90.accessibility.model.AXValueSourceType getType() {
        return type;
    }

    /**
     * The value of this property source.
     */
    public java.util.Optional getValue() {
        return value;
    }

    /**
     * The name of the relevant attribute, if any.
     */
    public java.util.Optional getAttribute() {
        return attribute;
    }

    /**
     * The value of the relevant attribute, if any.
     */
    public java.util.Optional getAttributeValue() {
        return attributeValue;
    }

    /**
     * Whether this source is superseded by a higher priority source.
     */
    public java.util.Optional getSuperseded() {
        return superseded;
    }

    /**
     * The native markup source for this value, e.g. a 




© 2015 - 2024 Weber Informatics LLC | Privacy Policy