Skip to content

Commit 92256a0

Browse files
joerg1985diemol
andauthored
[java] Deprecate all 'lift style' code (#12263)
Co-authored-by: Diego Molina <[email protected]>
1 parent c3ecc3c commit 92256a0

22 files changed

Lines changed: 22 additions & 0 deletions

java/src/org/openqa/selenium/lift/Finders.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.openqa.selenium.lift.find.BaseFinder;
2828
import org.openqa.selenium.lift.find.Finder;
2929

30+
@Deprecated
3031
public class Finders {
3132

3233
public static org.openqa.selenium.lift.find.HtmlTagFinder div() {

java/src/org/openqa/selenium/lift/HamcrestWebDriverTestCase.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import org.openqa.selenium.lift.find.Finder;
2828

2929
/** Base class for tests using the LiFT style API to driver WebDriver. */
30+
@Deprecated
3031
public abstract class HamcrestWebDriverTestCase extends TestCase {
3132

3233
private static final long DEFAULT_TIMEOUT = 5000;

java/src/org/openqa/selenium/lift/Matchers.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// Generated source.
1919
package org.openqa.selenium.lift;
2020

21+
@Deprecated
2122
public class Matchers {
2223

2324
public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> attribute(

java/src/org/openqa/selenium/lift/TestContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.openqa.selenium.lift.find.Finder;
2424

2525
/** Interface for objects that provide a context (maintaining any state) for web tests. */
26+
@Deprecated
2627
public interface TestContext {
2728

2829
void goTo(String url);

java/src/org/openqa/selenium/lift/WebDriverTestContext.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
import org.openqa.selenium.support.ui.WebDriverWait;
3535

3636
/** Gives the context for a test, holds page state, and interacts with the {@link WebDriver}. */
37+
@Deprecated
3738
public class WebDriverTestContext implements TestContext {
3839

3940
private WebDriver driver;

java/src/org/openqa/selenium/lift/find/BaseFinder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* Base class for {@link Finder}s. These allow the creation of a specification to be applied to
2929
* objects of type T, to identify and return a Collection of any contained objects of type S.
3030
*/
31+
@Deprecated
3132
public abstract class BaseFinder<S, T> implements Finder<S, T> {
3233

3334
protected List<Matcher<S>> matchers = new ArrayList<>();

java/src/org/openqa/selenium/lift/find/DivFinder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static org.openqa.selenium.lift.match.AttributeMatcher.attribute;
2222

2323
/** {@link Finder} for HTML div tags. */
24+
@Deprecated
2425
public class DivFinder extends HtmlTagFinder {
2526

2627
@Override

java/src/org/openqa/selenium/lift/find/Finder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import org.hamcrest.Matcher;
2222
import org.hamcrest.SelfDescribing;
2323

24+
@Deprecated
2425
public interface Finder<S, T> extends SelfDescribing {
2526
Collection<S> findFrom(T context);
2627

java/src/org/openqa/selenium/lift/find/HtmlTagFinder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* Base {@link Finder} for all types of HTML tags. Subclasses should be created for each specific
2929
* tag, specifying the tag name (e.g. "a" in the case or an anchor tag), and a description.
3030
*/
31+
@Deprecated
3132
public abstract class HtmlTagFinder extends BaseFinder<WebElement, WebDriver> {
3233

3334
@Override

java/src/org/openqa/selenium/lift/find/ImageFinder.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
package org.openqa.selenium.lift.find;
1919

2020
/** {@link Finder} for HTML image tags. */
21+
@Deprecated
2122
public class ImageFinder extends HtmlTagFinder {
2223

2324
@Override

0 commit comments

Comments
 (0)