Skip to content

Commit 47f993f

Browse files
committed
[java] Removing deprecated methods (findElement & findElements)
1 parent 7ce9bba commit 47f993f

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

java/src/org/openqa/selenium/remote/RemoteWebDriver.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -363,24 +363,6 @@ public List<WebElement> findElements(
363363
return elementLocation.findElements(this, context, findCommand, locator);
364364
}
365365

366-
/**
367-
* @deprecated Rely on using {@link By.Remotable} instead
368-
*/
369-
@Deprecated
370-
protected WebElement findElement(String by, String using) {
371-
throw new UnsupportedOperationException(
372-
"`findElement` has been replaced by usages of " + By.Remotable.class);
373-
}
374-
375-
/**
376-
* @deprecated Rely on using {@link By.Remotable} instead
377-
*/
378-
@Deprecated
379-
protected List<WebElement> findElements(String by, String using) {
380-
throw new UnsupportedOperationException(
381-
"`findElement` has been replaced by usages of " + By.Remotable.class);
382-
}
383-
384366
protected void setFoundBy(SearchContext context, WebElement element, String by, String using) {
385367
if (element instanceof RemoteWebElement) {
386368
RemoteWebElement remoteElement = (RemoteWebElement) element;

java/src/org/openqa/selenium/remote/RemoteWebElement.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -213,24 +213,6 @@ public WebElement findElement(By locator) {
213213
this, (using, value) -> FIND_CHILD_ELEMENT(getId(), using, String.valueOf(value)), locator);
214214
}
215215

216-
/**
217-
* @deprecated Rely on using {@link By.Remotable} instead
218-
*/
219-
@Deprecated
220-
protected WebElement findElement(String using, String value) {
221-
throw new UnsupportedOperationException(
222-
"`findElement` has been replaced by usages of " + By.Remotable.class);
223-
}
224-
225-
/**
226-
* @deprecated Rely on using {@link By.Remotable} instead
227-
*/
228-
@Deprecated
229-
protected List<WebElement> findElements(String using, String value) {
230-
throw new UnsupportedOperationException(
231-
"`findElement` has been replaced by usages of " + By.Remotable.class);
232-
}
233-
234216
@Override
235217
public SearchContext getShadowRoot() {
236218
Response response = execute(DriverCommand.GET_ELEMENT_SHADOW_ROOT(getId()));

0 commit comments

Comments
 (0)