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

puppeteer

Package Overview
Dependencies
Maintainers
3
Versions
908
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer - npm Package Compare versions

Comparing version 1.0.0-next.1516669982697 to 1.0.0-next.1516857257758

9

lib/FrameManager.js

@@ -545,6 +545,6 @@ /**

*/
async select(selector, ...values){
select(selector, ...values){
for (const value of values)
console.assert(helper.isString(value), 'Values must be strings. Found value "' + value + '" of type "' + (typeof value) + '"');
return await this.$eval(selector, (element, values) => {
return this.$eval(selector, (element, values) => {
if (element.nodeName.toLowerCase() !== 'select')

@@ -555,4 +555,7 @@ throw new Error('Element is not a <select> element.');

element.value = undefined;
for (const option of options)
for (const option of options) {
option.selected = values.includes(option.value);
if (option.selected && !element.multiple)
break;
}
element.dispatchEvent(new Event('input', { 'bubbles': true }));

@@ -559,0 +562,0 @@ element.dispatchEvent(new Event('change', { 'bubbles': true }));

{
"name": "puppeteer",
"version": "1.0.0-next.1516669982697",
"version": "1.0.0-next.1516857257758",
"description": "A high-level API to control headless Chrome over the DevTools Protocol",

@@ -5,0 +5,0 @@ "main": "index.js",

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