Skip to content

Commit d594da2

Browse files
authored
fix some typos, mostly in Java code (#9964)
1 parent 2d199e1 commit d594da2

File tree

57 files changed

+102
-103
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+102
-103
lines changed

common/src/web/rc/tests/TestCssLocators.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
</tr>
150150

151151
<!--css3 selector test-->
152-
<!--attribuite test-->
152+
<!--attribute test-->
153153
<tr>
154154
<td>verifyText</td>
155155
<td>css=a[name^="foo"]</td>

common/src/web/rc/tests/TestJavascriptParameters.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<td>25 * 25 = 625</td>
7878
</tr>
7979

80-
<!-- Demonstrate interation between variable substitution and javascript -->
80+
<!-- Demonstrate interaction between variable substitution and javascript -->
8181
<tr>
8282
<td>store</td>
8383
<td>the value</td>

common/src/web/readOnlyPage.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<input id="readOnlyTextInput" type="text" readonly value="Test"/>
66

7-
<input id="textInputnotenabled" type="text" disabled="true" value="Test"/>
7+
<input id="textInputNotEnabled" type="text" disabled="true" value="Test"/>
88

99
<textarea id="writableTextArea" rows="2" cols="20">
1010
This is a sample text area which is supposed to be cleared
@@ -13,7 +13,7 @@
1313
<textarea id="textAreaReadOnly" readonly rows="5" cols="20">
1414
text area which is not supposed to be cleared</textarea>
1515

16-
<textarea rows="5" id="textAreaNotenabled" disabled="true" cols="20">
16+
<textarea rows="5" id="textAreaNotEnabled" disabled="true" cols="20">
1717
text area which is not supposed to be cleared</textarea>
1818

1919
<div id="content-editable" contentEditable="true"><h1>This</h1><h2>is a</h2><p>contentEditable area</p></div>

dotnet/test/common/ClearTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void WritableTextInputShouldClear()
1919
public void TextInputShouldNotClearWhenDisabled()
2020
{
2121
driver.Url = readOnlyPage;
22-
IWebElement element = driver.FindElement(By.Id("textInputnotenabled"));
22+
IWebElement element = driver.FindElement(By.Id("textInputNotEnabled"));
2323
Assert.That(element.Enabled, Is.False);
2424
Assert.That(() => element.Clear(), Throws.InstanceOf<InvalidElementStateException>());
2525
}
@@ -46,7 +46,7 @@ public void WritableTextAreaShouldClear()
4646
public void TextAreaShouldNotClearWhenDisabled()
4747
{
4848
driver.Url = readOnlyPage;
49-
IWebElement element = driver.FindElement(By.Id("textAreaNotenabled"));
49+
IWebElement element = driver.FindElement(By.Id("textAreaNotEnabled"));
5050
Assert.That(() => element.Clear(), Throws.InstanceOf<InvalidElementStateException>());
5151
}
5252

java/CHANGELOG

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ v4.0.0-rc-2
2020
===========
2121

2222
* Supported CDP versions: 85, 93, 94
23-
* Moved NetworkInterceptor to org.opeqa.selenium.devtools
23+
* Moved NetworkInterceptor to org.openqa.selenium.devtools
2424
* NetworkInterceptor now takes a Filter to allow responses to be
2525
captured and rewritten.
2626
* Added a "relay" option to better support forwarding sessions to
@@ -77,7 +77,7 @@ v4.0.0-beta-3
7777
(#9273)
7878
* Selenium-created sessions supporting CDP have a `se:cdp` capability,
7979
pointing to the websocket address for CDP communication, and a
80-
`se:cdpVersion` which indictaes the version of the CDP to use.
80+
`se:cdpVersion` which indicates the version of the CDP to use.
8181
* Correctly indicate the Firefox supports CDP v85
8282
* Add support for CDP v90 and v91 and remove support for CDP v86 and
8383
v87.
@@ -131,7 +131,7 @@ v4.0.0-beta-1
131131
* Relative locators now return elements by proximity to last search
132132
term.
133133
* Refreshed Grid UI
134-
* Legay XPI driver marked as deprecated
134+
* Legacy XPI driver marked as deprecated
135135
* Removed reactor-netty httpclient
136136
* Reworked how custom element locators work. They will try to be
137137
remoted directly, before using a local implementation if remoting
@@ -169,7 +169,7 @@ v4.0.0-alpha-7
169169
* Add support for listening out for console log events.
170170
* Experimental support for script pinning.
171171
* Support multiple versions of CDP simultaneously.
172-
* Fix getText atom for unicode charater middle of word (#8736)
172+
* Fix getText atom for unicode character middle of word (#8736)
173173
* Include original stack trace when throwing TimeoutException.
174174
* Removed okhttp implementation of the http client.
175175
* Add experimental "reactor" http client.
@@ -204,7 +204,7 @@ v4.0.0-alpha-6
204204
* Ability to set maximum number of concurrent sessions on a node.
205205
* New reactor-based http client implementation. Set the
206206
`webdriver.http.factory` system property to `reactor` try it out.
207-
* Bumped OpenTelemetry verison to 0.4.0
207+
* Bumped OpenTelemetry version to 0.4.0
208208
* Selenium Standalone and Hub now also accept requests to `/wd/hub`
209209
* Implementing file uploading for distributed grid (and deleting
210210
uploaded files when session is closed)
@@ -398,7 +398,7 @@ v3.14.0
398398
https://snyk.io/research/zip-slip-vulnerability
399399
* Allow temporary installation of FF extension (#1) (#5751)
400400
* Fix windowSize option in Firefox in Javascript (#6075)
401-
* Make ConnectionType searilize as integer (#6176)
401+
* Make ConnectionType serialize as integer (#6176)
402402
* Pass found elements to the EventListener's afterFind method (#6191)
403403
* Add native events under se:ieOptions. (#6183)
404404

@@ -569,7 +569,7 @@ v3.6.0
569569

570570
* Remove direct dependency on HTMLUnit and PhantomJS from Maven
571571
artifacts.
572-
* All `*Option` classes now extend `MutableCapbilities`
572+
* All `*Option` classes now extend `MutableCapabilities`
573573
`new RemoteWebDriver(new ChromeOptions());`
574574
* Deprecating constructors that don't take strongly-typed `*Options`.
575575
* Improved exceptions when a `Wait` times out when using a
@@ -678,7 +678,7 @@ Important note:
678678
* Attempt to kill processes before draining input, error, and output
679679
streams. This should reduce apparent hanging when closing Firefox in
680680
particular.
681-
* Grid will make use of W3C capabilities in prefernce to the JSON Wire
681+
* Grid will make use of W3C capabilities in preference to the JSON Wire
682682
Protocol ones.
683683
* Fixing boolean command line arguments (#3877)
684684

@@ -996,7 +996,7 @@ WebDriver:
996996
* Fix a NullPointerException in RemoteWebDriver.getCurrentUrl
997997
* Reduces time wasted in when using a native driver
998998
* add the useful information about the session / capabilities in the exception when the 'browser may have died'
999-
* give the cleaner almost double the time to clean up the sessions (a whopping 9 more ms). Hopefull will deflake this test in CI.
999+
* give the cleaner almost double the time to clean up the sessions (a whopping 9 more ms). Hopefully will deflake this test in CI.
10001000
* Adding El Capitan (OS X 10.11) to Platform
10011001
* Updating IE driver to fix clearing of <input type='number'> fields
10021002
* Treat a null response to getCookies as [].

java/src/com/thoughtworks/selenium/HttpCommandProcessor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ protected int getResponseCode(HttpURLConnection conn) throws IOException {
165165

166166
protected String getCommandResponseAsString(String command) throws IOException {
167167
String responseString = null;
168-
int responsecode = HttpURLConnection.HTTP_MOVED_PERM;
168+
int responseCode = HttpURLConnection.HTTP_MOVED_PERM;
169169
HttpURLConnection uc = null;
170170
Writer wr = null;
171171
Reader rdr = null;
172-
while (responsecode == HttpURLConnection.HTTP_MOVED_PERM) {
172+
while (responseCode == HttpURLConnection.HTTP_MOVED_PERM) {
173173
URL result = new URL(pathToServlet);
174174
String body = buildCommandBody(command);
175175
try {
@@ -180,10 +180,10 @@ protected String getCommandResponseAsString(String command) throws IOException {
180180
wr = getOutputStreamWriter(uc);
181181
wr.write(body);
182182
wr.flush();
183-
responsecode = getResponseCode(uc);
184-
if (responsecode == HttpURLConnection.HTTP_MOVED_PERM) {
183+
responseCode = getResponseCode(uc);
184+
if (responseCode == HttpURLConnection.HTTP_MOVED_PERM) {
185185
pathToServlet = uc.getHeaderField("Location");
186-
} else if (responsecode != HttpURLConnection.HTTP_OK) {
186+
} else if (responseCode != HttpURLConnection.HTTP_OK) {
187187
throwAssertionFailureExceptionOrError(uc.getResponseMessage() + " URL: " + result);
188188
} else {
189189
rdr = getInputStreamReader(uc);

java/src/com/thoughtworks/selenium/Selenium.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ public interface Selenium {
17041704
String captureNetworkTraffic(String type);
17051705

17061706
/**
1707-
* Tells the Selenium server to add the specificed key and value as a custom outgoing request
1707+
* Tells the Selenium server to add the specified key and value as a custom outgoing request
17081708
* header. This only works if the browser is configured to use the built in Selenium proxy.
17091709
*
17101710
* @param key the header name.

java/src/org/openqa/selenium/grid/distributor/package-info.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
* <p>
2727
* To complicate matters, local ends may send a session request that is one of
2828
* two different dialects (presumably in the future there may be more. *sigh*)
29-
* and care must be taken to ensure that dialacts match, or that a converter
29+
* and care must be taken to ensure that dialects match, or that a converter
3030
* of some sort is added. The Node may be the part of the system responsible
3131
* for adding this converter.
3232
*/
33-
package org.openqa.selenium.grid.distributor;
33+
package org.openqa.selenium.grid.distributor;

java/src/org/openqa/selenium/grid/node/config/NodeFlags.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class NodeFlags implements HasRoles {
5656
@Parameter(
5757
names = {"--override-max-sessions"},
5858
arity = 1,
59-
description = "The # of available processos is the recommended max sessions value (1 browser "
59+
description = "The # of available processors is the recommended max sessions value (1 browser "
6060
+ "session per processor). Setting this flag to true allows the recommended max "
6161
+ "value to be overwritten. Session stability and reliability might suffer as "
6262
+ "the host could run out of resources.")

java/src/org/openqa/selenium/grid/router/ProxyWebsocketsIntoGrid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public Optional<Consumer<Message>> apply(String uri, Consumer<Message> downstrea
7171
return Optional.of(upstream::send);
7272

7373
} catch (NoSuchSessionException e) {
74-
LOG.info("Attempt to connect to non-existant session: " + uri);
74+
LOG.info("Attempt to connect to non-existent session: " + uri);
7575
return Optional.empty();
7676
}
7777
}

0 commit comments

Comments
 (0)