Skip to content

Commit d7b43ef

Browse files
ademuribarancev
authored andcommitted
Fix some typos in the client javadoc.
Signed-off-by: Alexei Barantsev <[email protected]>
1 parent dcc855b commit d7b43ef

File tree

8 files changed

+20
-21
lines changed

8 files changed

+20
-21
lines changed

java/client/src/org/openqa/selenium/WebDriver.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ interface ImeHandler {
457457
/**
458458
* Make an engines that is available (appears on the list returned by getAvailableEngines)
459459
* active. After this call, the only loaded engine on the IME daemon will be this one and the
460-
* input sent using sendKeys will be converted by the engine. Noteh that this is a
460+
* input sent using sendKeys will be converted by the engine. Note that this is a
461461
* platform-independent method of activating IME (the platform-specific way being using keyboard
462462
* shortcuts).
463463
*

java/client/src/org/openqa/selenium/support/ui/Clock.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface Clock {
4040
/**
4141
* Tests if a point in time occurs before the {@link #now() current time}.
4242
*
43-
* @param endInMillis The timestamnp to check.
43+
* @param endInMillis The timestamp to check.
4444
* @return Whether the given timestamp represents a point in time before the current time.
4545
*/
4646
boolean isNowBefore(long endInMillis);

java/client/src/org/openqa/selenium/support/ui/Duration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ public String toString() {
6464
}
6565

6666
/**
67-
* Converts this durtation to the given unit of time.
67+
* Converts this duration to the given unit of time.
6868
*
6969
* @param unit The time unit to convert to.
70-
* @return The value ofthis duration in the specified unit of time.
70+
* @return The value of this duration in the specified unit of time.
7171
*/
7272
public long in(TimeUnit unit) {
7373
return unit.convert(time, this.unit);

java/client/src/org/openqa/selenium/support/ui/ExpectedConditions.java

+9-9
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ public String toString() {
691691
* Wait until an element is no longer attached to the DOM.
692692
*
693693
* @param element The element to wait for.
694-
* @return false is the element is still attached to the DOM, true otherwise.
694+
* @return false if the element is still attached to the DOM, true otherwise.
695695
*/
696696
public static ExpectedCondition<Boolean> stalenessOf(final WebElement element) {
697697
return new ExpectedCondition<Boolean>() {
@@ -847,7 +847,7 @@ public String toString() {
847847
/**
848848
* An expectation with the logical opposite condition of the given condition.
849849
*
850-
* Note that if the Condition your are inverting throws an exception that is caught by the Ignored
850+
* Note that if the Condition you are inverting throws an exception that is caught by the Ignored
851851
* Exceptions, the inversion will not take place and lead to confusing results.
852852
*
853853
* @param condition ExpectedCondition to be inverted
@@ -999,7 +999,7 @@ public String toString() {
999999
* An expectation for checking number of WebElements with given locator
10001000
*
10011001
* @param locator used to find the element
1002-
* @param number user to define exact number of elements
1002+
* @param number used to define exact number of elements
10031003
* @return Boolean true when size of elements list is equal to defined
10041004
*/
10051005
public static ExpectedCondition<List<WebElement>> numberOfElementsToBeMoreThan(final By locator,
@@ -1027,7 +1027,7 @@ public String toString() {
10271027
* number
10281028
*
10291029
* @param locator used to find the element
1030-
* @param number user to define maximum number of elements
1030+
* @param number used to define maximum number of elements
10311031
* @return Boolean true when size of elements list is less than defined
10321032
*/
10331033
public static ExpectedCondition<List<WebElement>> numberOfElementsToBeLessThan(final By locator,
@@ -1054,7 +1054,7 @@ public String toString() {
10541054
* An expectation for checking number of WebElements with given locator
10551055
*
10561056
* @param locator used to find the element
1057-
* @param number user to define number of elements
1057+
* @param number used to define number of elements
10581058
* @return Boolean true when size of elements list is equal to defined
10591059
*/
10601060
public static ExpectedCondition<List<WebElement>> numberOfElementsToBe(final By locator,
@@ -1080,7 +1080,7 @@ public String toString() {
10801080
/**
10811081
* An expectation for checking given WebElement has attribute with a specific value
10821082
*
1083-
* @param element used to check it's parameters
1083+
* @param element used to check its parameters
10841084
* @param attribute used to define css or html attribute
10851085
* @param value used as expected attribute value
10861086
* @return Boolean true when element has css or html attribute with the value
@@ -1112,7 +1112,7 @@ public String toString() {
11121112
* An expectation for checking WebElement with given locator has attribute which contains specific
11131113
* value
11141114
*
1115-
* @param element used to check it's parameters
1115+
* @param element used to check its parameters
11161116
* @param attribute used to define css or html attribute
11171117
* @param value used as expected attribute value
11181118
* @return Boolean true when element has css or html attribute which contains the value
@@ -1141,7 +1141,7 @@ public String toString() {
11411141
* An expectation for checking WebElement with given locator has attribute which contains specific
11421142
* value
11431143
*
1144-
* @param locator used to define WebElement to check it's parameters
1144+
* @param locator used to define WebElement to check its parameters
11451145
* @param attribute used to define css or html attribute
11461146
* @param value used as expected attribute value
11471147
* @return Boolean true when element has css or html attribute which contains the value
@@ -1169,7 +1169,7 @@ public String toString() {
11691169
/**
11701170
* An expectation for checking WebElement any non empty value for given attribute
11711171
*
1172-
* @param element used to check it's parameters
1172+
* @param element used to check its parameters
11731173
* @param attribute used to define css or html attribute
11741174
* @return Boolean true when element has css or html attribute with non empty value
11751175
*/

java/client/src/org/openqa/selenium/support/ui/FluentWait.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -187,16 +187,15 @@ public FluentWait<T> ignoring(Class<? extends Throwable> firstType,
187187
* Repeatedly applies this instance's input value to the given function until one of the following
188188
* occurs:
189189
* <ol>
190-
* <li>the function returns neither null nor false,</li>
191-
* <li>the function throws an unignored exception,</li>
192-
* <li>the timeout expires,
193-
* <li>
190+
* <li>the function returns neither null nor false</li>
191+
* <li>the function throws an unignored exception</li>
192+
* <li>the timeout expires</li>
194193
* <li>the current thread is interrupted</li>
195194
* </ol>
196195
*
197196
* @param isTrue the parameter to pass to the {@link ExpectedCondition}
198197
* @param <V> The function's expected return type.
199-
* @return The functions' return value if the function returned something different
198+
* @return The function's return value if the function returned something different
200199
* from null or false before the timeout expired.
201200
* @throws TimeoutException If the timeout expires.
202201
*/

java/client/src/org/openqa/selenium/support/ui/ISelect.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
public interface ISelect {
3131

3232
/**
33-
* @return Whether this select element support selecting multiple options at the same time? This
33+
* @return Whether this select element supports selecting multiple options at the same time? This
3434
* is done by checking the value of the "multiple" attribute.
3535
*/
3636
public boolean isMultiple();

java/client/src/org/openqa/selenium/support/ui/Sleeper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void sleep(Duration duration) throws InterruptedException {
3434
* Sleeps for the specified duration of time.
3535
*
3636
* @param duration How long to sleep.
37-
* @throws InterruptedException If hte thread is interrupted while sleeping.
37+
* @throws InterruptedException If the thread is interrupted while sleeping.
3838
*/
3939
void sleep(Duration duration) throws InterruptedException;
4040
}

java/client/src/org/openqa/selenium/support/ui/Wait.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public interface Wait<F> {
3535
* If the condition does not become true within a certain time (as defined by the implementing
3636
* class), this method will throw a non-specified {@link Throwable}. This is so that an
3737
* implementor may throw whatever is idiomatic for a given test infrastructure (e.g. JUnit4 would
38-
* throw {@link AssertionError}.
38+
* throw {@link AssertionError}).
3939
*
4040
* @param <T> the return type of the method, which must not be Void
4141
* @param isTrue the parameter to pass to the {@link ExpectedCondition}

0 commit comments

Comments
 (0)