selenium-webdriver
Advanced tools
Comparing version 4.5.0 to 4.6.0
@@ -0,1 +1,19 @@ | ||
## v4.6.0 | ||
#### :rocket: New Feature | ||
* [grid] Add ability to use Enter key to confirm (#11178) | ||
* [grid][ui] Add search field for running sessions (#11197) | ||
* Add support for selenium manager (#11189) | ||
#### :bug: Bug Fix | ||
* isPromise() thenable fix (#11048) | ||
* Fix: making methods static (#11182) | ||
#### :nail_care: Polish | ||
* fix a tiny typo in chromium.js (#11073) | ||
* Adding CDP files for v107 and removing v104 | ||
## v4.5.0 | ||
@@ -2,0 +20,0 @@ |
@@ -133,2 +133,3 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
const chromium = require('./chromium') | ||
const { driverLocation } = require('./common/seleniumManager') | ||
@@ -154,3 +155,4 @@ /** | ||
* the builder will attempt to locate the chromedriver on the current | ||
* PATH. | ||
* PATH. If the chromedriver is not available in path, selenium-manager will | ||
* download the chromedriver | ||
* @throws {Error} If provided executable does not exist, or the chromedriver | ||
@@ -161,10 +163,24 @@ * cannot be found on the PATH. | ||
let exe = opt_exe || locateSynchronously() | ||
if (!exe) { | ||
console.log( | ||
` The ChromeDriver could not be found on the current PATH, trying Selenium Manager` | ||
) | ||
try { | ||
exe = driverLocation(Browser.CHROME) | ||
} catch (err) { | ||
console.log(`Unable to obtain driver using Selenium Manager: ${err}`) | ||
} | ||
} | ||
if (!exe) { | ||
throw Error( | ||
`The ChromeDriver could not be found on the current PATH. Please ` + | ||
`download the latest version of the ChromeDriver from ` + | ||
`http://chromedriver.storage.googleapis.com/index.html and ensure ` + | ||
`it can be found on your PATH.` | ||
`The ChromeDriver could not be found on the current PATH. | ||
Please download the latest version of the ChromeDriver | ||
from http://chromedriver.storage.googleapis.com/index.html | ||
and ensure it can be found on your PATH.` | ||
) | ||
} | ||
super(exe) | ||
@@ -171,0 +187,0 @@ } |
@@ -709,3 +709,3 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
* @return {!Promise} A promise that will be resolved when network | ||
* emulation settings are retrievied. | ||
* emulation settings are retrieved. | ||
*/ | ||
@@ -712,0 +712,0 @@ getNetworkConditions() { |
15
edge.js
@@ -83,2 +83,3 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
const chromium = require('./chromium') | ||
const { driverLocation } = require('./common/seleniumManager') | ||
@@ -110,3 +111,16 @@ /** | ||
let exe = opt_exe || locateSynchronously() | ||
if (!exe) { | ||
console.log( | ||
`The WebDriver for Edge could not be found on the current PATH, trying Selenium Manager` | ||
) | ||
try { | ||
exe = driverLocation('edge') | ||
} catch (err) { | ||
console.log(`Unable to obtain driver using Selenium Manager: ${err}`) | ||
} | ||
} | ||
if (!exe) { | ||
throw Error( | ||
@@ -119,2 +133,3 @@ `The WebDriver for Edge could not be found on the current PATH. Please download the ` + | ||
} | ||
super(exe) | ||
@@ -121,0 +136,0 @@ this.setLoopback(true) |
@@ -130,2 +130,3 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
const { Zip } = require('./io/zip') | ||
const { driverLocation } = require('./common/seleniumManager') | ||
@@ -463,12 +464,23 @@ /** | ||
let exe = locateSynchronously() | ||
if (!exe) { | ||
console.log( | ||
`The ${GECKO_DRIVER_EXE} executable could not be found on the current PATH, trying Selenium Manager` | ||
) | ||
try { | ||
exe = driverLocation(Browser.FIREFOX) | ||
} catch (err) { | ||
console.log(`Unable to obtain driver using Selenium Manager: ${err}`) | ||
} | ||
} | ||
if (!exe) { | ||
throw Error( | ||
'The ' + | ||
GECKO_DRIVER_EXE + | ||
' executable could not be found on the current ' + | ||
'PATH. Please download the latest version from ' + | ||
'https://github.com/mozilla/geckodriver/releases/ ' + | ||
'and ensure it can be found on your PATH.' | ||
`The ${GECKO_DRIVER_EXE} executable could not be found on the current PATH. | ||
Please download the latest version from https://github.com/mozilla/geckodriver/releases/ | ||
and ensure it can be found on your PATH.` | ||
) | ||
} | ||
return exe | ||
@@ -475,0 +487,0 @@ } |
@@ -37,3 +37,12 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
function isPromise(value) { | ||
return Object.prototype.toString.call(value) === '[object Promise]' | ||
try { | ||
// Use array notation so the Closure compiler does not obfuscate away our | ||
// contract. | ||
return ( | ||
(typeof value === 'object' || typeof value === 'function') && | ||
typeof value['then'] === 'function' | ||
) | ||
} catch (ex) { | ||
return false | ||
} | ||
} | ||
@@ -40,0 +49,0 @@ |
@@ -172,2 +172,3 @@ // Licensed to the Software Freedom Conservancy (SFC) under one | ||
* @param signCount initial value for a signature counter. | ||
* @deprecated This method has been made static. Call it with class name. Example, Credential.createResidentCredential() | ||
* @returns A resident credential | ||
@@ -179,2 +180,6 @@ */ | ||
static createResidentCredential(id, rpId, userHandle, privateKey, signCount) { | ||
return new Credential(id, true, rpId, userHandle, privateKey, signCount) | ||
} | ||
/** | ||
@@ -186,2 +191,3 @@ * Creates a non-resident (i.e. stateless) credential. | ||
* @param signCount initial value for a signature counter. | ||
* @deprecated This method has been made static. Call it with class name. Example, Credential.createNonResidentCredential() | ||
* @returns A non-resident credential | ||
@@ -193,2 +199,6 @@ */ | ||
static createNonResidentCredential(id, rpId, privateKey, signCount) { | ||
return new Credential(id, false, rpId, null, privateKey, signCount) | ||
} | ||
toDict() { | ||
@@ -195,0 +205,0 @@ let credentialData = { |
{ | ||
"name": "selenium-webdriver", | ||
"version": "4.5.0", | ||
"version": "4.6.0", | ||
"description": "The official WebDriver JavaScript bindings from the Selenium project", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9916485
56
15591
29
5