| 25 | import org.openqa.selenium.logging.Logs; |
| 26 | |
| 27 | public class StubDriver implements WebDriver, JavascriptExecutor { |
| 28 | |
| 29 | @NullMarked |
| 30 | @Override |
| 31 | public void get(String url) { |
| 32 | throw new UnsupportedOperationException("get"); |
| 33 | } |
| 34 | |
| 35 | @Override |
| 36 | public String getCurrentUrl() { |
| 37 | throw new UnsupportedOperationException("getCurrentUrl"); |
| 38 | } |
| 39 | |
| 40 | @Override |
| 41 | public String getTitle() { |
| 42 | throw new UnsupportedOperationException("getTitle"); |
| 43 | } |
| 44 | |
| 45 | @NullMarked |
| 46 | @Override |
| 47 | public List<WebElement> findElements(By by) { |
| 48 | throw new UnsupportedOperationException("findElements"); |
| 49 | } |
| 50 | |
| 51 | @NullMarked |
| 52 | @Override |
| 53 | public WebElement findElement(By by) { |
| 54 | throw new UnsupportedOperationException("findElement"); |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public String getPageSource() { |
| 59 | throw new UnsupportedOperationException("getPageSource"); |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public void close() { |
| 64 | throw new UnsupportedOperationException("close"); |
| 65 | } |
| 66 | |
| 67 | @Override |
| 68 | public void quit() { |
| 69 | throw new UnsupportedOperationException("quit"); |
| 70 | } |
| 71 | |
| 72 | @Override |
| 73 | public Set<String> getWindowHandles() { |
| 74 | throw new UnsupportedOperationException("getWindowHandles"); |
| 75 | } |
| 76 | |
| 77 | @Override |
| 78 | public String getWindowHandle() { |
| 79 | throw new UnsupportedOperationException("getWindowHandle"); |
| 80 | } |
| 81 | |
| 82 | @Override |
| 83 | public TargetLocator switchTo() { |
| 84 | throw new UnsupportedOperationException("switchTo"); |
nothing calls this directly
no outgoing calls
no test coverage detected