Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

selenium-webdriver

Package Overview
Dependencies
Maintainers
8
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

selenium-webdriver - npm Package Compare versions

Comparing version 4.8.1 to 4.8.2

11

CHANGES.md

@@ -0,1 +1,12 @@

## v4.8.2
#### :nail_care: Polish
* Add CDP support for v111 and remove v108
* Using json output with Selenium Manager
#### :bug: Bug Fix
fix: Using status from response (#11742)
## v4.8.1

@@ -2,0 +13,0 @@

11

chrome.js

@@ -163,6 +163,2 @@ // Licensed to the Software Freedom Conservancy (SFC) under one

if (!exe) {
console.log(
` The ChromeDriver could not be found on the current PATH, trying Selenium Manager`
)
try {

@@ -177,6 +173,5 @@ exe = driverLocation(Browser.CHROME)

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.`
`ChromeDriver could not be found on the PATH.
For more information on how to install drivers see
https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/.`
)

@@ -183,0 +178,0 @@ }

@@ -72,18 +72,26 @@ // Licensed to the Software Freedom Conservancy (SFC) under one

let args = [getBinary(), '--browser', browser]
let result
let args = [getBinary(), '--browser', browser, '--output', 'json']
let output
try {
result = execSync(args.join(' ')).toString()
output = JSON.parse(execSync(args.join(' ')).toString())
} catch (e) {
let error
try {
error = JSON.parse(e.stdout.toString()).result.message
} catch (e) {
error = e.toString()
}
throw new Error(
`Error executing command with ${args}\n${e.stdout.toString()}${e.stderr.toString()}`
`Error executing command with ${args}: ${error}`
)
}
if (!result.startsWith('INFO\t')) {
throw new Error(`Unsuccessful command executed: ${args}\n${result}`)
for (const key in output.logs){
if (output.logs[key].level === 'WARN') {
console.warn(`${output.logs[key].message}`)
}
}
return result.replace('INFO\t', '').trim()
return output.result.message
}

@@ -90,0 +98,0 @@

@@ -112,6 +112,2 @@ // Licensed to the Software Freedom Conservancy (SFC) under one

if (!exe) {
console.log(
`The WebDriver for Edge could not be found on the current PATH, trying Selenium Manager`
)
try {

@@ -126,9 +122,7 @@ exe = driverLocation('edge')

throw Error(
`The WebDriver for Edge could not be found on the current PATH. Please download the ` +
`latest version of ${EDGEDRIVER_CHROMIUM_EXE} from ` +
`https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/ ` +
`and ensure it can be found on your PATH.`
`MSEdgeDriver could not be found on the PATH.
For more information on how to install drivers see
https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/.`
)
}
super(exe)

@@ -135,0 +129,0 @@ this.setLoopback(true)

@@ -477,6 +477,2 @@ // Licensed to the Software Freedom Conservancy (SFC) under one

if (!exe) {
console.log(
`The ${GECKO_DRIVER_EXE} executable could not be found on the current PATH, trying Selenium Manager`
)
try {

@@ -491,5 +487,5 @@ exe = driverLocation(Browser.FIREFOX)

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.`
`GeckoDriver could not be found on the PATH.
For more information on how to install drivers see
https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/.`
)

@@ -496,0 +492,0 @@ }

@@ -404,6 +404,2 @@ // Licensed to the Software Freedom Conservancy (SFC) under one

if (!exe) {
console.log(
`The ${IEDRIVER_EXE} executable could not be found on the current PATH, trying Selenium Manager`
)
try {

@@ -418,6 +414,5 @@ exe = driverLocation('iexplorer')

throw Error(
`${IEDRIVER_EXE} could not be found on the current PATH. Please ` +
`download the latest version of ${IEDRIVER_EXE} from ` +
'https://www.selenium.dev/downloads/ and ' +
'ensure it can be found on your system PATH.'
`IEDriver could not be found on the PATH.
For more information on how to install drivers see
https://www.selenium.dev/documentation/webdriver/getting_started/install_drivers/.`
)

@@ -424,0 +419,0 @@ }

{
"name": "selenium-webdriver",
"version": "4.8.1",
"version": "4.8.2",
"description": "The official WebDriver JavaScript bindings from the Selenium project",

@@ -5,0 +5,0 @@ "license": "Apache-2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc