Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#362 fix #413

Merged
merged 114 commits into from
Jun 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
97e3d35
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
e5df2e3
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
93d3fc8
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
c405a9a
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
6e9b7cf
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
e13c2ce
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
d1a557b
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
244df0a
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
8395560
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
e14d9c5
KristianRosenvold: Removed windows carriage returns
krosenvold Jan 11, 2013
8806156
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
0420245
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
4f61f72
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
4f82dc4
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
9ca861a
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
ff8bff2
KristianRosenvold: Removed windows carriage returns
krosenvold Jan 11, 2013
46ead3c
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
894cd62
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
4b75404
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
1120d3d
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
181595c
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
8872b46
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
ab5092a
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
1fe9a03
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
b62de6e
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
ab1a120
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
269b908
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
8326182
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
527dda1
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
6b4a570
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
57b48f1
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
3244cc8
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
2af82fd
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
777d798
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
1a28651
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
7d06926
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
c5829a7
KristianRosenvold: Removed windows carriage returns
krosenvold Jan 11, 2013
7188ee6
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
500e276
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
f67be62
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
2d6b296
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
33a1629
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
38e5bc3
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
4a65779
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
188b9cf
SimonStewart: Deprecating the getValue method as it duplicates getAtt…
shs96c Mar 28, 2011
044508f
SimonStewart: Starting the process of deleting RenderedWebElement by …
shs96c Apr 8, 2011
64b3222
SimonStewart: Removing the deprecated getValue method
shs96c Jun 2, 2011
4c3f442
SimonStewart: Deprecating setSelected and toggle on WebElement
shs96c Jun 12, 2011
8855b7b
SimonStewart: Deleting the deprecated toggle method
shs96c Jun 27, 2011
e00fa71
SimonStewart: Removing WebElement.setSelected from the java tree and …
shs96c Jun 27, 2011
1893b8a
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
624896b
paul hammant: Add Javadoc to describe the entanglement with implicit …
Sep 7, 2011
ad876d9
SimonStewart: Rewording some of the docs for findElements
shs96c Sep 9, 2011
c1a186d
Paul Hammant: ThoughtWorks code grant to SFC completed
Oct 12, 2011
8521a4f
KristianRosenvold: Added javadoc note to findElement about using find…
krosenvold Nov 19, 2011
5ce224e
DanielWagnerHall: Clarifying shorthand vs longhand property behaviour
illicitonion Dec 11, 2011
f614ed2
DanielWagnerHall: s/Conservatory/Conservancy/g
illicitonion Dec 16, 2011
848c69f
DanielWagnerHall: Fix docs to indicate getAttribute returns null not …
illicitonion Jan 3, 2012
bb37a6d
LeoLaskin: updating with jleybay's comments from r16426.
Apr 5, 2012
f9a8b3e
LeoLaskin: fixed per Jari's comments and added the @throws
Apr 5, 2012
1134887
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
c8a2233
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
81f2bc3
DanielWagnerHall for BobSilverberg: Color standardization for HtmlUni…
illicitonion Jun 20, 2012
a0eb398
DanielWagnerHall: Clarify event behaviour of WebElement#clear
illicitonion Jun 22, 2012
78f79f9
AlexeiBarantsev: Fixing link in javadoc. Fixes issue 4627
barancev Oct 9, 2012
dfecb8d
KristianRosenvold: Removed windows carriage returns
krosenvold Jan 11, 2013
7636f6b
Fixing Javadoc for getAttribute. Fixes issue 2443
barancev Oct 11, 2013
18cd3a2
updating javadocs / fixing javadoc errors
lukeis Feb 26, 2015
b6d303d
java: mention native events in docs for WebElement.click
hjwp Sep 5, 2014
9de88d0
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
0673413
adding TakesScreenshot to WebElement, not going down the Augmentor ro…
lukeis Jun 26, 2015
648c874
first pass at fixing some of the javadoc errors... still quite a few …
lukeis Sep 24, 2015
64ac62c
adding selenium server pass throughs for W3C dialect of alert / windo…
lukeis Nov 12, 2015
fdb29bd
SimonStewart: Moving the vast bulk of the client-side code to the new…
shs96c Feb 1, 2011
4a31725
SimonStewart: Deleting the deprecated 'Speed' class and methods that …
shs96c Feb 16, 2011
09480d5
EranMes: Allow controlling IME engines on Windows and Linux, code con…
eranmes Mar 7, 2011
89b7537
EranMes: Removing the boolean from the activateEngine call, as an exc…
eranmes Mar 8, 2011
006e2b1
SimonStewart: Amending the description of activeElement to be clearer…
shs96c May 23, 2011
6129780
DanielWagnerHall: Bulk reformatting. Some changes may not be perfect;…
illicitonion Aug 24, 2011
30b7bd4
paul hammant: Add Javadoc to describe the entanglement with implicit …
Sep 7, 2011
7705dcf
SimonStewart: Rewording some of the docs for findElements
shs96c Sep 9, 2011
e1bf9a5
AlexeiBarantsev: Adding @throws clause to switchTo().alert()
barancev Sep 28, 2011
604983f
Paul Hammant: ThoughtWorks code grant to SFC completed
Oct 12, 2011
d9bad6c
JariBakken: Beta implementation of window resize/move for Firefox + R…
jarib Nov 7, 2011
6e9e284
KristianRosenvold: Added same javadoc in WebDriver too
krosenvold Nov 19, 2011
2cc4916
AlexeiBarantsev: Implementing a separate implicit timeout for alerts.…
barancev Dec 13, 2011
ed2035a
AlexeiBarantsev: Reverting back r15180
barancev Dec 15, 2011
3134cc4
DouniaBerrad: Remote server logging and Android implementation of ser…
Dec 15, 2011
6311f85
DanielWagnerHall: s/Conservatory/Conservancy/g
illicitonion Dec 16, 2011
40c4f9f
SimonStewart: Minor fixes to the javadocs. No logical changes
shs96c Jan 31, 2012
410a17b
SimonStewart: Implement the page loading timeout in the firefox driver
shs96c Feb 20, 2012
6679c8b
DanielWagnerHall for ZacCampbell: Implementing window.maximise/restor…
illicitonion Mar 19, 2012
c376fe1
SimonStewart: the Window.restore method is not needed as it's effecti…
shs96c Mar 19, 2012
88cc5ed
SimonStewart: After a code grant, the code is copyright the SFC and t…
shs96c May 14, 2012
4b5010d
SimonStewart: Crassly pasting a copyright header on any file that did…
shs96c May 14, 2012
3988c09
SimonStewart: We haven't been just the webdriver project for a long t…
shs96c May 14, 2012
38d48dd
KristianRosenvold: Removed windows carriage returns
krosenvold Jan 11, 2013
a526865
Improving javadoc to correspond to the Specification
barancev Aug 23, 2013
9744f52
Fixes some server and client javadocs.
alex-savchuk Oct 1, 2013
1b54c51
Whitespace and import clean-up.
jleyba Oct 15, 2013
5a4afd8
Implementing support for switching context as described here: http://…
DominikDary Mar 12, 2014
d7c31b0
Fixing javadoc
barancev Mar 12, 2014
adb6753
Adding swicthToParentFrame to Java API
barancev Mar 12, 2014
250b559
Push context switching into a role-based interface.
shs96c Mar 17, 2014
e76a226
updating javadocs / fixing javadoc errors
lukeis Feb 26, 2015
0758702
For #401, apply a consistent copyright notice to the java/ tree.
jleyba Apr 5, 2015
94c146c
first pass at fixing some of the javadoc errors... still quite a few …
lukeis Sep 24, 2015
0d1432c
moar javadoc
lukeis Sep 27, 2015
517313e
adding selenium server pass throughs for W3C dialect of alert / windo…
lukeis Nov 12, 2015
8f5f2a0
New added code was formatted. Check style rules were changed
TikhomirovSergey Jun 6, 2016
d28c76d
Generic searching interfaces
TikhomirovSergey Jun 6, 2016
bc79b1a
API re-design
TikhomirovSergey Jun 7, 2016
54361c0
Redesign of default generic classes
TikhomirovSergey Jun 7, 2016
d8729ba
the final improvement and commit
TikhomirovSergey Jun 8, 2016
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
7 changes: 5 additions & 2 deletions google-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="LineLength">
<property name="max" value="100"/>
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="AvoidStarImport">
Expand Down Expand Up @@ -181,9 +181,12 @@
<property name="allowSamelineMultipleAnnotations" value="true"/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<module name="JavadocTagContinuationIndentation"/>
<module name="JavadocTagContinuationIndentation">
<property name="severity" value="warning"/>
</module>
<module name="SummaryJavadoc">
<property name="forbiddenSummaryFragments" value="^@return the *|^This method returns |^A [{]@code [a-zA-Z0-9]+[}]( is a )"/>
<property name="severity" value="warning"/>
</module>
<module name="JavadocParagraph">
<property name="severity" value="warning"/>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/appium/java_client/AppiumDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public List<T> findElementsByXPath(String using) {
}

@Override public List<T> findElementsByAccessibilityId(String using) {
return (List<T>) findElements("accessibility id", using);
return super.findElementsByAccessibilityId(using);
}

@Override protected Response execute(String command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@

package io.appium.java_client;

import io.appium.java_client.generic.searchcontext.GenericFindsByClassName;
import io.appium.java_client.generic.searchcontext.GenericFindsByCssSelector;
import io.appium.java_client.generic.searchcontext.GenericFindsById;
import io.appium.java_client.generic.searchcontext.GenericFindsByLinkText;
import io.appium.java_client.generic.searchcontext.GenericFindsByName;
import io.appium.java_client.generic.searchcontext.GenericFindsByTagName;
import io.appium.java_client.generic.searchcontext.GenericFindsByXPath;
import io.appium.java_client.generic.searchcontext.GenericSearchContext;

import org.openqa.selenium.By;
import org.openqa.selenium.Capabilities;
import org.openqa.selenium.WebDriverException;
Expand All @@ -39,9 +30,7 @@

@SuppressWarnings({"unchecked", "rawtypes"})
abstract class DefaultGenericMobileDriver<T extends WebElement> extends RemoteWebDriver
implements GenericSearchContext<T>, GenericFindsById<T>, GenericFindsByXPath<T>,
GenericFindsByLinkText<T>, GenericFindsByTagName<T>, GenericFindsByClassName<T>,
GenericFindsByCssSelector<T>, GenericFindsByName<T>, MobileDriver {
implements MobileDriver<T> {

public DefaultGenericMobileDriver(CommandExecutor executor, Capabilities desiredCapabilities) {
super(executor, desiredCapabilities);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,6 @@

package io.appium.java_client;

import io.appium.java_client.generic.searchcontext.GenericFindsByClassName;
import io.appium.java_client.generic.searchcontext.GenericFindsByCssSelector;
import io.appium.java_client.generic.searchcontext.GenericFindsById;
import io.appium.java_client.generic.searchcontext.GenericFindsByLinkText;
import io.appium.java_client.generic.searchcontext.GenericFindsByName;
import io.appium.java_client.generic.searchcontext.GenericFindsByTagName;
import io.appium.java_client.generic.searchcontext.GenericFindsByXPath;
import io.appium.java_client.generic.searchcontext.GenericSearchContext;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;
Expand All @@ -37,10 +27,7 @@

@SuppressWarnings({"unchecked", "rawtypes"})
abstract class DefaultGenericMobileElement<T extends WebElement> extends RemoteWebElement
implements GenericSearchContext<T>, GenericFindsById<T>, GenericFindsByXPath<T>,
GenericFindsByLinkText<T>, GenericFindsByTagName<T>, GenericFindsByClassName<T>,
GenericFindsByCssSelector<T>, GenericFindsByName<T>, FindsByAccessibilityId<T>,
TouchableElement {
implements FindsByAccessibilityId<T>, TouchableElement<T> {

@Override public Response execute(String driverCommand, Map<String, ?> parameters) {
return super.execute(driverCommand, parameters);
Expand All @@ -50,10 +37,18 @@ abstract class DefaultGenericMobileElement<T extends WebElement> extends RemoteW
return super.findElements(by);
}

@Override public List findElements(String by, String using) {
return super.findElements(by, using);
}

@Override public T findElement(By by) {
return (T) super.findElement(by);
}

@Override public T findElement(String by, String using) {
return (T) super.findElement(by, using);
}

@Override public List findElementsById(String id) {
return super.findElementsById(id);
}
Expand Down
53 changes: 50 additions & 3 deletions src/main/java/io/appium/java_client/MobileDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,64 @@

package io.appium.java_client;

import org.openqa.selenium.By;
import org.openqa.selenium.ContextAware;
import org.openqa.selenium.Rotatable;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.html5.LocationContext;
import org.openqa.selenium.internal.FindsByClassName;
import org.openqa.selenium.internal.FindsByCssSelector;
import org.openqa.selenium.internal.FindsById;
import org.openqa.selenium.internal.FindsByLinkText;
import org.openqa.selenium.internal.FindsByName;
import org.openqa.selenium.internal.FindsByTagName;
import org.openqa.selenium.internal.FindsByXPath;
import org.openqa.selenium.remote.Response;

import java.util.List;
import java.util.Map;

public interface MobileDriver extends WebDriver, PerformsTouchActions, ContextAware, Rotatable,
FindsByAccessibilityId<WebElement>, LocationContext, DeviceActionShortcuts, TouchShortcuts,
InteractsWithFiles, InteractsWithApps, HasAppStrings {
public interface MobileDriver<T extends WebElement> extends WebDriver, PerformsTouchActions, ContextAware, Rotatable,
FindsByAccessibilityId<T>, LocationContext, DeviceActionShortcuts, TouchShortcuts,
InteractsWithFiles, InteractsWithApps, HasAppStrings, FindsByClassName, FindsByCssSelector, FindsById,
FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath {

Response execute(String driverCommand, Map<String, ?> parameters);

List<T> findElements(By by);

T findElement(By by);

T findElementByClassName(String className);

List<T> findElementsByClassName(String className);

T findElementByCssSelector(String cssSelector);

List<T> findElementsByCssSelector(String cssSelector);

T findElementById(String id);

List<T> findElementsById(String id);

T findElementByLinkText(String linkText);

List<T> findElementsByLinkText(String linkText);

T findElementByPartialLinkText(String partialLinkText);

List<T> findElementsByPartialLinkText(String partialLinkText);

T findElementByName(String name);

List<T> findElementsByName(String name);

T findElementByTagName(String tagName);

List<T> findElementsByTagName(String tagName);

T findElementByXPath(String xPath);

List<T> findElementsByXPath(String xPath);
}
13 changes: 5 additions & 8 deletions src/main/java/io/appium/java_client/MobileElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,8 @@
import org.openqa.selenium.By;
import org.openqa.selenium.Dimension;
import org.openqa.selenium.Point;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.FileDetector;

import java.util.ArrayList;
import java.util.List;

@SuppressWarnings({"unchecked"})
Expand Down Expand Up @@ -69,6 +67,10 @@ public Point getCenter() {
return super.findElements(by);
}

@Override public List<MobileElement> findElements(String by, String using) {
return super.findElements(by, using);
}

@Override public List<MobileElement> findElementsById(String id) {
return super.findElementsById(id);
}
Expand Down Expand Up @@ -102,11 +104,6 @@ public List<MobileElement> findElementsByXPath(String using) {
}

@Override public List<MobileElement> findElementsByAccessibilityId(String using) {
List<MobileElement> result = new ArrayList<MobileElement>();
List<WebElement> found = findElements("accessibility id", using);
for (WebElement e : found) {
result.add((MobileElement) e);
}
return result;
return super.findElementsByAccessibilityId(using);
}
}
50 changes: 49 additions & 1 deletion src/main/java/io/appium/java_client/TouchableElement.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,61 @@

package io.appium.java_client;

import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.internal.FindsByClassName;
import org.openqa.selenium.internal.FindsByCssSelector;
import org.openqa.selenium.internal.FindsById;
import org.openqa.selenium.internal.FindsByLinkText;
import org.openqa.selenium.internal.FindsByName;
import org.openqa.selenium.internal.FindsByTagName;
import org.openqa.selenium.internal.FindsByXPath;

import java.util.List;

/**
* It supposed that mobile elements could be tappable, swipeable, zoomable and so on.
* This interface extends {@link WebElement} and describes this behavior.
*/
public interface TouchableElement extends WebElement {
public interface TouchableElement<T extends WebElement> extends WebElement, FindsByClassName,
FindsByCssSelector, FindsById,
FindsByLinkText, FindsByName, FindsByTagName, FindsByXPath {

List<T> findElements(By by);

T findElement(By by);

T findElementByClassName(String className);

List<T> findElementsByClassName(String className);

T findElementByCssSelector(String cssSelector);

List<T> findElementsByCssSelector(String cssSelector);

T findElementById(String id);

List<T> findElementsById(String id);

T findElementByLinkText(String linkText);

List<T> findElementsByLinkText(String linkText);

T findElementByPartialLinkText(String partialLinkText);

List<T> findElementsByPartialLinkText(String partialLinkText);

T findElementByName(String name);

List<T> findElementsByName(String name);

T findElementByTagName(String tagName);

List<T> findElementsByTagName(String tagName);

T findElementByXPath(String xPath);

List<T> findElementsByXPath(String xPath);

/**
* Convenience method for pinching the given element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
import io.appium.java_client.MobileElement;

import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;

import java.util.ArrayList;
import java.util.List;


Expand All @@ -37,20 +35,15 @@ public class AndroidElement extends MobileElement
*/
@Override public MobileElement findElementByAndroidUIAutomator(String using)
throws WebDriverException {
return (MobileElement) findElement("-android uiautomator", using);
return findElement("-android uiautomator", using);
}

/**
* @throws WebDriverException This method is not applicable with browser/webview UI.
*/
@Override public List<MobileElement> findElementsByAndroidUIAutomator(String using)
throws WebDriverException {
List<MobileElement> result = new ArrayList<MobileElement>();
List<WebElement> found = findElements("-android uiautomator", using);
for (WebElement e : found) {
result.add((AndroidElement) e);
}
return result;
return findElements("-android uiautomator", using);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByClassName}
* instead.
*/
public interface GenericFindsByClassName<T extends WebElement> {
T findElementByClassName(String className);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByCssSelector}
* instead.
*/
public interface GenericFindsByCssSelector<T extends WebElement> {
T findElementByCssSelector(String cssSelector);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsById}
* instead.
*/
public interface GenericFindsById<T extends WebElement> {
T findElementById(String id);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByLinkText}
* instead.
*/
public interface GenericFindsByLinkText<T extends WebElement> {
T findElementByLinkText(String linkText);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByName}
* instead.
*/
public interface GenericFindsByName<T extends WebElement> {
T findElementByName(String name);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByTagName}
* instead.
*/
public interface GenericFindsByTagName<T extends WebElement> {
T findElementByTagName(String tagName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import java.util.List;

@Deprecated
/**
* This interface became deprecated. Use
* {@link org.openqa.selenium.internal.FindsByXPath}
* instead.
*/
public interface GenericFindsByXPath<T extends WebElement> {
T findElementByXPath(String xPath);

Expand Down
Loading