Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/Finders.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.openqa.selenium.lift.find.BaseFinder;
import org.openqa.selenium.lift.find.Finder;

@Deprecated
public class Finders {

public static org.openqa.selenium.lift.find.HtmlTagFinder div() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.openqa.selenium.lift.find.Finder;

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

private static final long DEFAULT_TIMEOUT = 5000;
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/Matchers.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// Generated source.
package org.openqa.selenium.lift;

@Deprecated
public class Matchers {

public static org.hamcrest.Matcher<org.openqa.selenium.WebElement> attribute(
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/TestContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.lift.find.Finder;

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

void goTo(String url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import org.openqa.selenium.support.ui.WebDriverWait;

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

private WebDriver driver;
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/BaseFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* Base class for {@link Finder}s. These allow the creation of a specification to be applied to
* objects of type T, to identify and return a Collection of any contained objects of type S.
*/
@Deprecated
public abstract class BaseFinder<S, T> implements Finder<S, T> {

protected List<Matcher<S>> matchers = new ArrayList<>();
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/DivFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.openqa.selenium.lift.match.AttributeMatcher.attribute;

/** {@link Finder} for HTML div tags. */
@Deprecated
public class DivFinder extends HtmlTagFinder {

@Override
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/Finder.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import org.hamcrest.Matcher;
import org.hamcrest.SelfDescribing;

@Deprecated
public interface Finder<S, T> extends SelfDescribing {
Collection<S> findFrom(T context);

Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/HtmlTagFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
* Base {@link Finder} for all types of HTML tags. Subclasses should be created for each specific
* tag, specifying the tag name (e.g. "a" in the case or an anchor tag), and a description.
*/
@Deprecated
public abstract class HtmlTagFinder extends BaseFinder<WebElement, WebDriver> {

@Override
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/ImageFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.openqa.selenium.lift.find;

/** {@link Finder} for HTML image tags. */
@Deprecated
public class ImageFinder extends HtmlTagFinder {

@Override
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/InputFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.openqa.selenium.lift.Matchers.value;

/** {@link Finder} for HTML input tags. */
@Deprecated
public class InputFinder extends HtmlTagFinder {

@Override
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/LinkFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.openqa.selenium.lift.match.TextMatcher.text;

/** A {@link Finder} for HTML anchor tags, "links". */
@Deprecated
public class LinkFinder extends HtmlTagFinder {

private LinkFinder() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.openqa.selenium.lift.match.TextMatcher.text;

/** A {@link Finder} for HTML title tags. */
@Deprecated
public class PageTitleFinder extends HtmlTagFinder {

private PageTitleFinder() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.openqa.selenium.lift.find;

/** A {@link Finder} for HTML table cell "td" tags. */
@Deprecated
public class TableCellFinder extends HtmlTagFinder {

private TableCellFinder() {}
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/TableFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package org.openqa.selenium.lift.find;

/** A {@link Finder} for HTML table tags. */
@Deprecated
public class TableFinder extends HtmlTagFinder {

private TableFinder() {}
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/find/XPathFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.WebElement;

/** A {@link Finder} for elements using XPath expressions */
@Deprecated
public class XPathFinder extends BaseFinder<WebElement, WebDriver> {
private final String xpath;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.WebElement;

/** hamcrest matcher for attributes of {@link WebElement}s. */
@Deprecated
public class AttributeMatcher extends TypeSafeMatcher<WebElement> {

private final Matcher<String> matcher;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.openqa.selenium.WebElement;

/** Hamcrest matcher for displayed status of {@link WebElement}s. */
@Deprecated
public class DisplayedMatcher extends TypeSafeMatcher<WebElement> {

private DisplayedMatcher() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.hamcrest.Matcher;

/** Various numerical hamcrest {@link Matcher}s. */
@Deprecated
public class NumericalMatchers {

public static Matcher<Integer> atLeast(int i) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.WebElement;

/** Matcher to match a selected element (e.g. a radio button). */
@Deprecated
public class SelectionMatcher extends TypeSafeMatcher<WebElement> {

@Override
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/match/TextMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.WebElement;

/** {@link Matcher} for matching text content within {@link WebElement}s. */
@Deprecated
public class TextMatcher extends TypeSafeMatcher<WebElement> {

private final Matcher<String> matcher;
Expand Down
1 change: 1 addition & 0 deletions java/src/org/openqa/selenium/lift/match/ValueMatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.openqa.selenium.WebElement;

/** Matches the value of an element, for example an input field. */
@Deprecated
public class ValueMatcher extends TypeSafeMatcher<WebElement> {

private final Object value;
Expand Down