MCPcopy
hub / github.com/SeleniumHQ/selenium / WrappedWebElement

Class WrappedWebElement

java/test/org/openqa/selenium/WrappedWebElement.java:27–125  ·  view source on GitHub ↗

A WebElement that wraps another WebElement, for purposes of testing that JSON converters serialized wrapped elements correctly.

Source from the content-addressed store, hash-verified

25 * serialized wrapped elements correctly.
26 */
27@NullMarked
28public class WrappedWebElement implements WebElement, WrapsElement {
29
30 private final WebElement wrappedElement;
31
32 public WrappedWebElement(WebElement element) {
33 this.wrappedElement = element;
34 }
35
36 @Override
37 public WebElement getWrappedElement() {
38 return wrappedElement;
39 }
40
41 @Override
42 public void click() {
43 throw new UnsupportedOperationException();
44 }
45
46 @Override
47 public void submit() {
48 throw new UnsupportedOperationException();
49 }
50
51 @Override
52 public void sendKeys(CharSequence... keysToSend) {
53 throw new UnsupportedOperationException();
54 }
55
56 @Override
57 public void clear() {
58 throw new UnsupportedOperationException();
59 }
60
61 @Override
62 public String getTagName() {
63 throw new UnsupportedOperationException();
64 }
65
66 @Override
67 public String getAttribute(String name) {
68 throw new UnsupportedOperationException();
69 }
70
71 @Override
72 public boolean isSelected() {
73 throw new UnsupportedOperationException();
74 }
75
76 @Override
77 public boolean isEnabled() {
78 throw new UnsupportedOperationException();
79 }
80
81 @Override
82 public String getText() {
83 throw new UnsupportedOperationException();
84 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected