diff --git a/javascript/node/selenium-webdriver/index.js b/javascript/node/selenium-webdriver/index.js index eb9ba36edf437..8f664a3ffa044 100644 --- a/javascript/node/selenium-webdriver/index.js +++ b/javascript/node/selenium-webdriver/index.js @@ -339,10 +339,10 @@ class Builder { getCapabilities() { return this.capabilities_ } - + /** - * Sets the desired capability when requesting a new session. - * If there is already a capability named key, its value will be overwritten with value. + * Sets the desired capability when requesting a new session. + * If there is already a capability named key, its value will be overwritten with value. * This is a convenience wrapper around builder.getCapabilities().set(key, value) to support Builder method chaining. * @param {string} key The capability key. * @param {*} value The capability value. @@ -822,7 +822,7 @@ exports.Builder = Builder exports.Button = input.Button exports.By = by.By exports.withTagName = by.withTagName -exports.withLocator = by.withLocator +exports.locateWith = by.locateWith exports.Capabilities = capabilities.Capabilities exports.Capability = capabilities.Capability exports.Condition = webdriver.Condition