From 6e5351e456791053d5c33d7d5c6ac6fc9e5173af Mon Sep 17 00:00:00 2001 From: Noritaka Kobayashi Date: Tue, 8 Jul 2025 10:39:20 +0900 Subject: [PATCH] Fix typos in javascript & rb --- javascript/atoms/html5/database.js | 2 +- javascript/atoms/html5/html5_browser.js | 2 +- javascript/atoms/html5/storage.js | 2 +- javascript/atoms/test/html5/database_test.html | 2 +- javascript/atoms/test/opacity_test.html | 2 +- javascript/atoms/test/shown_test.html | 2 +- javascript/atoms/test/text_table_test.html | 2 +- javascript/atoms/test/type_test.html | 2 +- javascript/atoms/test/window_size_test.html | 2 +- javascript/selenium-webdriver/CHANGES.md | 6 +++--- javascript/selenium-webdriver/bidi/networkTypes.js | 2 +- javascript/selenium-webdriver/bidi/protocolType.js | 2 +- javascript/selenium-webdriver/example/logging.js | 2 +- javascript/selenium-webdriver/io/exec.js | 2 +- javascript/selenium-webdriver/remote/index.js | 2 +- javascript/selenium-webdriver/test/fedcm/fedcm_test.js | 2 +- javascript/selenium-webdriver/testing/index.js | 2 +- .../webdriver/test/atoms/inject/interactions_test.html | 2 +- .../webdriver/test/atoms/inject/sql_database_test.html | 2 +- rb/CHANGES | 10 +++++----- rb/lib/selenium/webdriver/common/wait.rb | 2 +- .../selenium/webdriver/remote/http/default_spec.rb | 2 +- 22 files changed, 28 insertions(+), 28 deletions(-) diff --git a/javascript/atoms/html5/database.js b/javascript/atoms/html5/database.js index 31c4a53e55625..72817097fd04c 100644 --- a/javascript/atoms/html5/database.js +++ b/javascript/atoms/html5/database.js @@ -109,7 +109,7 @@ bot.storage.database.executeSql = function(databaseName, query, args, bot.storage.database.ResultSet = function(sqlResultSet) { /** - * The database rows retuned from the SQL query. + * The database rows returned from the SQL query. * @type {!Array.<*>} */ this.rows = []; diff --git a/javascript/atoms/html5/html5_browser.js b/javascript/atoms/html5/html5_browser.js index 3b8c257b18c1c..e962719751e49 100644 --- a/javascript/atoms/html5/html5_browser.js +++ b/javascript/atoms/html5/html5_browser.js @@ -142,7 +142,7 @@ bot.html5.isSupported = function(api, opt_window) { return false; } return goog.isDefAndNotNull(win.sessionStorage) && - // To avoid browsers that only support this API partically + // To avoid browsers that only support this API partially // like some versions of FF. goog.isDefAndNotNull(win.sessionStorage.clear); diff --git a/javascript/atoms/html5/storage.js b/javascript/atoms/html5/storage.js index 9230539817fe3..44f524d67ec18 100644 --- a/javascript/atoms/html5/storage.js +++ b/javascript/atoms/html5/storage.js @@ -40,7 +40,7 @@ goog.require('bot.html5'); * We use bot.window() from bot.js instead to keep track of the window or frame * is currently being used for command execution. The implementation is * otherwise similar to the implementation in the Closure library - * (goog.storage.mechansim.HTML5LocalStorage). + * (goog.storage.mechanism.HTML5LocalStorage). * * @param {Window=} opt_window The window whose storage to access; * defaults to the main window. diff --git a/javascript/atoms/test/html5/database_test.html b/javascript/atoms/test/html5/database_test.html index c4d322cd872fb..f7978bb461638 100644 --- a/javascript/atoms/test/html5/database_test.html +++ b/javascript/atoms/test/html5/database_test.html @@ -121,7 +121,7 @@ var onTxSuccess = onQueryResult; var onTxFailure = success; - // WITH is errorneously used instead of WHERE + // WITH is erroneously used instead of WHERE bot.storage.database.executeSql('testDB', 'SELECT * from docids WITH id = 1', [], onQueryResult, diff --git a/javascript/atoms/test/opacity_test.html b/javascript/atoms/test/opacity_test.html index c16730dfcaedd..17777710e337d 100644 --- a/javascript/atoms/test/opacity_test.html +++ b/javascript/atoms/test/opacity_test.html @@ -93,7 +93,7 @@

To determine opacity, it is not enough to simply read a property - value but some visual inpection is needed in order to verify if + value but some visual inspection is needed in order to verify if the property is applied. This is specially true in IE which is vey sensible to the syntax of the filter property.

diff --git a/javascript/atoms/test/shown_test.html b/javascript/atoms/test/shown_test.html index aa4e6fdf090a6..056a2d761cc1b 100644 --- a/javascript/atoms/test/shown_test.html +++ b/javascript/atoms/test/shown_test.html @@ -376,7 +376,7 @@ function testTableRowCollapsedVisibility() { expectedFailures.expectFailureFor( (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(8)), - 'IE does not support visibilty:collapsed until IE8'); + 'IE does not support visibility:collapsed until IE8'); var elem = findElement({id: 'collapsed-row'}); expectedFailures.run(function() { assertFalse(isShown(elem)); diff --git a/javascript/atoms/test/text_table_test.html b/javascript/atoms/test/text_table_test.html index 347bc41f2a3d7..9b2ff578429bf 100644 --- a/javascript/atoms/test/text_table_test.html +++ b/javascript/atoms/test/text_table_test.html @@ -211,7 +211,7 @@ function testTableWithCollapsedRows() { expectedFailures.expectFailureFor( (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(8)), - 'IE does not support visibilty:collapsed until IE8'); + 'IE does not support visibility:collapsed until IE8'); expectedFailures.run(function() { assertTextIs( goog.dom.getElement('collapsedTable'), diff --git a/javascript/atoms/test/type_test.html b/javascript/atoms/test/type_test.html index b6cf80afe3beb..957f83e1a045b 100644 --- a/javascript/atoms/test/type_test.html +++ b/javascript/atoms/test/type_test.html @@ -442,7 +442,7 @@ * * For IE versions prior to 8, this function resumes an async test case and * executes the optionally-provided function after a fixed delay. For all - * other browsers, it just executes the function straightaway. + * other browsers, it just executes the function straight away. */ function yieldInIE7() { return new goog.Promise(function (done) { diff --git a/javascript/atoms/test/window_size_test.html b/javascript/atoms/test/window_size_test.html index 0d0de4aa9ba00..91a8289f8c478 100644 --- a/javascript/atoms/test/window_size_test.html +++ b/javascript/atoms/test/window_size_test.html @@ -35,7 +35,7 @@ } function verifySize(expectedSize) { - // TODO: Reenable when b/8869287 is fixed. + // TODO: Re-enable when b/8869287 is fixed. if (bot.userAgent.IE_DOC_9) { return; } diff --git a/javascript/selenium-webdriver/CHANGES.md b/javascript/selenium-webdriver/CHANGES.md index 74870b0cb5235..0cfa733442533 100644 --- a/javascript/selenium-webdriver/CHANGES.md +++ b/javascript/selenium-webdriver/CHANGES.md @@ -891,7 +891,7 @@ to a remote Selenium server that supports Firefox 45. ### Changes - Removed native support for Firefox 46 and older. - - The `SELENIUM_MARIONETTE` enviornment variable no longer has an effect. + - The `SELENIUM_MARIONETTE` environment variable no longer has an effect. - `selenium-webdriver/firefox.Capability.MARIONETTE` is deprecated. - `selenium-webdriver/firefox.Options#useGeckoDriver()` is deprecated and now a no-op. @@ -1001,7 +1001,7 @@ or newer. - (**NOTICE**) The minimum supported version of Node is now 6.9.0 LTS - Removed support for the SafariDriver browser extension. This has been replaced by Apple's - safaridriver, which is included wtih Safari 10 + safaridriver, which is included with Safari 10 (available on OS X El Capitan and macOS Sierra). To use Safari 9 or older, users will have to use an older version of Selenium. @@ -1018,7 +1018,7 @@ or newer. - Extending the `selenium-webdriver/testing` module to support tests defined using generator functions. -- The promise manager can be disabled by setting an enviornment variable: +- The promise manager can be disabled by setting an environment variable: `SELENIUM_PROMISE_MANAGER=0`. This is part of a larger plan to remove the promise manager, as documented at diff --git a/javascript/selenium-webdriver/bidi/networkTypes.js b/javascript/selenium-webdriver/bidi/networkTypes.js index 8a62aaa5d3964..286d040e5b078 100644 --- a/javascript/selenium-webdriver/bidi/networkTypes.js +++ b/javascript/selenium-webdriver/bidi/networkTypes.js @@ -211,7 +211,7 @@ class Cookie { } } -// No tests written for FetchTimingInfo. Must be updated after browsers implment it and corresponding WPT test are written. +// No tests written for FetchTimingInfo. Must be updated after browsers implement it and corresponding WPT test are written. /** * Represents the time of each part of the request. * Described in https://w3c.github.io/webdriver-bidi/#type-network-FetchTimingInfo. diff --git a/javascript/selenium-webdriver/bidi/protocolType.js b/javascript/selenium-webdriver/bidi/protocolType.js index 81c578f6c225c..9d46747235ee2 100644 --- a/javascript/selenium-webdriver/bidi/protocolType.js +++ b/javascript/selenium-webdriver/bidi/protocolType.js @@ -93,7 +93,7 @@ const RemoteType = { } /** - * Represents a speacial number type. + * Represents a special number type. * @enum * Described in https://w3c.github.io/webdriver-bidi/#type-script-PrimitiveProtocolValue. */ diff --git a/javascript/selenium-webdriver/example/logging.js b/javascript/selenium-webdriver/example/logging.js index 51edbed0d8b94..396f1e5a5047b 100644 --- a/javascript/selenium-webdriver/example/logging.js +++ b/javascript/selenium-webdriver/example/logging.js @@ -16,7 +16,7 @@ // under the License. /** - * @fileoverview Demonstrates how to use WebDriver's logging sysem. + * @fileoverview Demonstrates how to use WebDriver's logging system. */ 'use strict' diff --git a/javascript/selenium-webdriver/io/exec.js b/javascript/selenium-webdriver/io/exec.js index 6af991a50fd80..dcd9b89ead78a 100644 --- a/javascript/selenium-webdriver/io/exec.js +++ b/javascript/selenium-webdriver/io/exec.js @@ -41,7 +41,7 @@ class Options { this.env /** - * IO conifguration for the spawned server child process. If unspecified, + * IO configuration for the spawned server child process. If unspecified, * the child process' IO output will be ignored. * * @type {(string|!Array| diff --git a/javascript/selenium-webdriver/remote/index.js b/javascript/selenium-webdriver/remote/index.js index bc3e4e3255696..d85256b4e4e8d 100644 --- a/javascript/selenium-webdriver/remote/index.js +++ b/javascript/selenium-webdriver/remote/index.js @@ -399,7 +399,7 @@ DriverService.Builder = class { /** * Defines the environment to start the server under. This setting will be * inherited by every browser session started by the server. By default, the - * server will inherit the enviroment of the current process. + * server will inherit the environment of the current process. * * @param {(Map|Object|null)} env The desired * environment to use, or `null` if the server should inherit the diff --git a/javascript/selenium-webdriver/test/fedcm/fedcm_test.js b/javascript/selenium-webdriver/test/fedcm/fedcm_test.js index 4ae3ac70b5706..0f38fad22555c 100644 --- a/javascript/selenium-webdriver/test/fedcm/fedcm_test.js +++ b/javascript/selenium-webdriver/test/fedcm/fedcm_test.js @@ -35,7 +35,7 @@ suite( }) describe('Federated Credential Management Test', function () { - it('credential mangement dialog should appear', async function () { + it('credential management dialog should appear', async function () { await driver.get(Pages.fedcm) let triggerButton = await driver.findElement(By.id('triggerButton')) diff --git a/javascript/selenium-webdriver/testing/index.js b/javascript/selenium-webdriver/testing/index.js index d48bb4affd9f8..a572e69a9ee53 100644 --- a/javascript/selenium-webdriver/testing/index.js +++ b/javascript/selenium-webdriver/testing/index.js @@ -260,7 +260,7 @@ const URL_MAP = /** !WeakMap */ n */ class Environment { /** - * @param {!TargetBrowser} browser the browser targetted in this environment. + * @param {!TargetBrowser} browser the browser targeted in this environment. * @param {?(string|remote.SeleniumServer)=} url remote URL of an existing * Selenium server to test against. */ diff --git a/javascript/webdriver/test/atoms/inject/interactions_test.html b/javascript/webdriver/test/atoms/inject/interactions_test.html index 67292025ad652..ef7b5913d1de9 100644 --- a/javascript/webdriver/test/atoms/inject/interactions_test.html +++ b/javascript/webdriver/test/atoms/inject/interactions_test.html @@ -78,7 +78,7 @@ focusElement(input); doType(['bar', webdriver.Key.SHIFT, 'baz'], state); - // IE<10 does not preserve cursor position after chaning focus. + // IE<10 does not preserve cursor position after changing focus. if (bot.userAgent.IE_DOC_PRE10) { assertEquals('BARbazfoo', input.value); } else { diff --git a/javascript/webdriver/test/atoms/inject/sql_database_test.html b/javascript/webdriver/test/atoms/inject/sql_database_test.html index 7b182f5ec6222..48099d0ecca2b 100644 --- a/javascript/webdriver/test/atoms/inject/sql_database_test.html +++ b/javascript/webdriver/test/atoms/inject/sql_database_test.html @@ -55,7 +55,7 @@ } return new goog.Promise(function(onDone) { - // WITH is errorneously used instead of WHERE + // WITH is erroneously used instead of WHERE webdriver.atoms.inject.storage.database.executeSql( 'testDB', 'SELECT * from docids WITH id = 1', diff --git a/rb/CHANGES b/rb/CHANGES index c4fdd6da38437..54655fbb734c6 100644 --- a/rb/CHANGES +++ b/rb/CHANGES @@ -1855,7 +1855,7 @@ Safari: * Replace 'libwebsocket' with 'websocket' gem. This should ensure support with recent Safari. Other: - * Fix Cygwin issue in PortProber/Firefox::Bianry (#4963) + * Fix Cygwin issue in PortProber/Firefox::Binary (#4963) 2.27.2 (2012-12-11) =================== @@ -1945,7 +1945,7 @@ IE: * Fix conflict with ActiveSupport's Object#load (#3819) * IE: * Default to standalone server executable, fall back to bundled DLLs. - * The 'nativeEvents' capabilitiy is exposed as :native_events in the Ruby client (mode still experimental). + * The 'nativeEvents' capability is exposed as :native_events in the Ruby client (mode still experimental). * Firefox: * Native events for Firefox 12. * Native events retained for Firefox 3.x, 10 and 11. @@ -2085,7 +2085,7 @@ IE: =================== * Firefox: - * Now supports up to Firefox 11 (for syntesized events) + * Now supports up to Firefox 11 (for synthesized events) * Implicit waits now change how long we wait for alerts. This functionality will change in 2.16 * Fix scrolling issue (#2700) @@ -2279,7 +2279,7 @@ IE: 2.1.0 (2011-07-18) ================== -* Various improvments to the IE driver (#2049, #1870) +* Various improvements to the IE driver (#2049, #1870) * Atoms fixes (#1776, #1972). * Synthetic mouse clicks do not propagate errors in onmouseover. @@ -2429,7 +2429,7 @@ IE: * Cookie expiration dates are now handled correctly (#730) * Make Driver#bridge private, since this seems to be a common cause of confusion. * Add {Element,Remote::Capabilities}#as_json for Rails 3 (http://jonathanjulian.com/2010/04/rails-to_json-or-as_json/) -* User can configure path to exectuables with {Firefox,Chrome}.path = "/some/path" +* User can configure path to executables with {Firefox,Chrome}.path = "/some/path" * Added "chromium" as a possible name for the Chrome binary (#769) * Correctly set the HTTP client timeout (#768) * switch_to.window with block now handles exceptions and non-local returns. diff --git a/rb/lib/selenium/webdriver/common/wait.rb b/rb/lib/selenium/webdriver/common/wait.rb index feeecdb4f31c7..abe3889f8c02b 100644 --- a/rb/lib/selenium/webdriver/common/wait.rb +++ b/rb/lib/selenium/webdriver/common/wait.rb @@ -29,7 +29,7 @@ class Wait # @param [Hash] opts Options for this instance # @option opts [Numeric] :timeout (5) Seconds to wait before timing out. # @option opts [Numeric] :interval (0.2) Seconds to sleep between polls. - # @option opts [String] :message Exception mesage if timed out. + # @option opts [String] :message Exception message if timed out. # @option opts [Array, Exception] :ignore Exceptions to ignore while polling (default: Error::NoSuchElementError) # diff --git a/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb b/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb index 8ed74ae2a385a..21eff54011c37 100644 --- a/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb +++ b/rb/spec/unit/selenium/webdriver/remote/http/default_spec.rb @@ -69,7 +69,7 @@ module Http end %w[http_proxy HTTP_PROXY].each do |proxy_var| - it "honors the #{proxy_var} environment varable" do + it "honors the #{proxy_var} environment variable" do with_env(proxy_var => 'http://proxy.org:8080') do http = client.send :http