Make RemoteWebElement able to serilise itself as json
@@ -398,4 +398,10 @@ public String toString() {
}
return String.format("[%s]", foundBy);
}
+
+ public Map<String, Object> toJson() {
+ return ImmutableMap.of(
+ Dialect.OSS.getEncodedElementKey(), getId(),
+ Dialect.W3C.getEncodedElementKey(), getId());
+ }
}
