org.openqa.selenium.devtools.v90.dom.model.CSSComputedStyleProperty 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;
public class CSSComputedStyleProperty {
private final java.lang.String name;
private final java.lang.String value;
public CSSComputedStyleProperty(java.lang.String name, java.lang.String value) {
this.name = java.util.Objects.requireNonNull(name, "name is required");
this.value = java.util.Objects.requireNonNull(value, "value is required");
}
/**
* Computed style property name.
*/
public java.lang.String getName() {
return name;
}
/**
* Computed style property value.
*/
public java.lang.String getValue() {
return value;
}
private static CSSComputedStyleProperty fromJson(JsonInput input) {
java.lang.String name = null;
java.lang.String value = null;
input.beginObject();
while (input.hasNext()) {
switch(input.nextName()) {
case "name":
name = input.nextString();
break;
case "value":
value = input.nextString();
break;
default:
input.skipValue();
break;
}
}
input.endObject();
return new CSSComputedStyleProperty(name, value);
}
}