Class BrowserCoordinateTarget
-
- All Implemented Interfaces:
public final class BrowserCoordinateTargetA point in the browser viewport, in viewport pixels (the same frame as a full-viewport screenshot).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBrowserCoordinateTarget.BuilderA builder for BrowserCoordinateTarget.
-
Method Summary
Modifier and Type Method Description final Longx()Pixels from the left edge of the viewport. final Longy()Pixels from the top edge of the viewport. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("coordinate")final JsonField<Long>_x()Returns the raw JSON value of x. final JsonField<Long>_y()Returns the raw JSON value of y. final Map<String, JsonValue>_additionalProperties()final BrowserCoordinateTarget.BuildertoBuilder()final BrowserCoordinateTargetvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BrowserCoordinateTarget.Builderbuilder()Returns a mutable builder for constructing an instance of BrowserCoordinateTarget. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("coordinate")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_x
final JsonField<Long> _x()
Returns the raw JSON value of x.
Unlike x, this method doesn't throw if the JSON field has an unexpected type.
-
_y
final JsonField<Long> _y()
Returns the raw JSON value of y.
Unlike y, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BrowserCoordinateTarget.Builder toBuilder()
-
validate
final BrowserCoordinateTarget validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BrowserCoordinateTarget.Builder builder()
Returns a mutable builder for constructing an instance of BrowserCoordinateTarget.
The following fields are required:
.x() .y()
-
-
-
-