A WebElement that wraps another WebElement, for purposes of testing that JSON converters serialized wrapped elements correctly.
| 25 | * serialized wrapped elements correctly. |
| 26 | */ |
| 27 | @NullMarked |
| 28 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected