public class Screenshot extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Screenshot.HtmlFormattedInfo |
| Constructor and Description |
|---|
Screenshot(String filename,
String description,
int width,
long timestamp) |
Screenshot(String filename,
String description,
int width,
long timestamp,
FailureCause error) |
Screenshot(String filename,
String description,
int width,
long timestamp,
FailureCause error,
int depth) |
| Modifier and Type | Method and Description |
|---|---|
Screenshot |
before() |
boolean |
equals(Object o) |
int |
getDepth() |
String |
getDescription() |
FailureCause |
getError() |
String |
getErrorMessage() |
String |
getFilename() |
Screenshot.HtmlFormattedInfo |
getHtml() |
String |
getShortErrorMessage()
Returns the first line only of the error message.
|
Long |
getTimestamp() |
int |
getWidth() |
int |
hashCode() |
Screenshot |
withDepth(int depth) |
Screenshot |
withDescription(String description) |
public Screenshot(String filename, String description, int width, long timestamp, FailureCause error)
public Screenshot(String filename, String description, int width, long timestamp, FailureCause error, int depth)
public FailureCause getError()
public String getErrorMessage()
public String getShortErrorMessage()
public String getFilename()
public String getDescription()
public int getWidth()
public Long getTimestamp()
public int getDepth()
public Screenshot.HtmlFormattedInfo getHtml()
public Screenshot withDescription(String description)
public Screenshot withDepth(int depth)
public Screenshot before()
Copyright © 2023. All rights reserved.