Comparing version 6.12.1 to 7.0.0-beta.0
@@ -1,6 +0,6 @@ | ||
/// <reference types="webdriver" /> | ||
import { Cookie } from '@wdio/protocols'; | ||
import type DevToolsDriver from '../devtoolsdriver'; | ||
export default function addCookie(this: DevToolsDriver, { cookie }: { | ||
cookie: WebDriver.Cookie; | ||
cookie: Cookie; | ||
}): Promise<null>; | ||
//# sourceMappingURL=addCookie.d.ts.map |
@@ -1,6 +0,6 @@ | ||
/// <reference types="webdriver" /> | ||
/// <reference types="node" /> | ||
import type { ExtendedCapabilities } from '../types'; | ||
import type DevToolsDriver from '../devtoolsdriver'; | ||
export default function newSession(this: DevToolsDriver, { capabilities }: { | ||
capabilities: WebDriver.Capabilities; | ||
capabilities: ExtendedCapabilities; | ||
}): Promise<{ | ||
@@ -7,0 +7,0 @@ sessionId: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
async function performActions() { | ||
} | ||
async function performActions() { } | ||
exports.default = performActions; |
@@ -1,3 +0,2 @@ | ||
/// <reference types="webdriver" /> | ||
import type { DefaultOptions } from '@wdio/config'; | ||
import type { Options } from '@wdio/types'; | ||
export declare const DEFAULT_WIDTH = 1200; | ||
@@ -18,3 +17,3 @@ export declare const DEFAULT_HEIGHT = 900; | ||
}; | ||
export declare const DEFAULTS: DefaultOptions<WebDriver.Options>; | ||
export declare const DEFAULTS: Options.Definition<Options.WebDriver>; | ||
export declare const DEFAULT_IMPLICIT_TIMEOUT = 0; | ||
@@ -21,0 +20,0 @@ export declare const DEFAULT_PAGELOAD_TIMEOUT: number; |
@@ -1,8 +0,5 @@ | ||
/// <reference types="webdriverio/webdriverio-core" /> | ||
/// <reference types="webdriverio" /> | ||
/// <reference types="@wdio/cucumber-framework" /> | ||
import type { Browser } from 'puppeteer-core/lib/cjs/puppeteer/common/Browser'; | ||
import type { Dialog } from 'puppeteer-core/lib/cjs/puppeteer/common/Dialog'; | ||
import type { Page } from 'puppeteer-core/lib/cjs/puppeteer/common/Page'; | ||
import type WDIOProtocols from '@wdio/protocols'; | ||
import type { CommandEndpoint } from '@wdio/protocols'; | ||
import ElementStore from './elementstore'; | ||
@@ -21,3 +18,3 @@ export default class DevToolsDriver { | ||
static requireCommand(filePath: string): any; | ||
register(commandInfo: WDIOProtocols.CommandEndpoint): (this: WebdriverIO.BrowserObject, ...args: any[]) => Promise<any>; | ||
register(commandInfo: CommandEndpoint): (this: Browser, ...args: any[]) => Promise<any>; | ||
dialogHandler(dialog: Dialog): void; | ||
@@ -24,0 +21,0 @@ framenavigatedHandler(frame: Page): void; |
@@ -1,5 +0,3 @@ | ||
/// <reference types="node" /> | ||
/// <reference types="expect-webdriverio" /> | ||
declare const _default: (browserName: 'firefox' | 'edge', platform: NodeJS.Platform) => (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]) | (() => string[]); | ||
export default _default; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,9 +0,7 @@ | ||
/// <reference types="webdriver" /> | ||
/// <reference types="webdriverio/webdriverio-core" /> | ||
/// <reference types="webdriverio" /> | ||
import type { Options } from '@wdio/types'; | ||
import { SUPPORTED_BROWSER } from './constants'; | ||
export declare const sessionMap: Map<any, any>; | ||
export default class DevTools { | ||
static newSession(options?: WebDriver.Options, modifier?: Function, userPrototype?: {}, customCommandWrapper?: Function): Promise<any>; | ||
static reloadSession(instance: WebdriverIO.BrowserObject): Promise<string>; | ||
static newSession(options: Options.WebDriver, modifier?: Function, userPrototype?: {}, customCommandWrapper?: Function): Promise<any>; | ||
static reloadSession(instance: any): Promise<any>; | ||
static attachToSession(): void; | ||
@@ -10,0 +8,0 @@ } |
@@ -23,3 +23,3 @@ "use strict"; | ||
class DevTools { | ||
static async newSession(options = {}, modifier, userPrototype = {}, customCommandWrapper) { | ||
static async newSession(options, modifier, userPrototype = {}, customCommandWrapper) { | ||
var _a, _b; | ||
@@ -34,2 +34,3 @@ const params = config_1.validateConfig(constants_1.DEFAULTS, options); | ||
log.info('Initiate new session using the DevTools protocol'); | ||
const requestedCapabilities = { ...params.capabilities }; | ||
const browser = await launcher_1.default(params.capabilities); | ||
@@ -44,3 +45,2 @@ const pages = await browser.pages(); | ||
.find((capKey) => availableVendorPrefixes.includes(capKey)); | ||
params.requestedCapabilities = { ...params.capabilities }; | ||
params.capabilities = { | ||
@@ -71,3 +71,3 @@ browserName: userAgent.browser.name, | ||
}; | ||
const monad = utils_1.webdriverMonad(params, modifier, prototype); | ||
const monad = utils_1.webdriverMonad({ ...params, requestedCapabilities }, modifier, prototype); | ||
return monad(sessionId, customCommandWrapper); | ||
@@ -74,0 +74,0 @@ } |
@@ -1,16 +0,4 @@ | ||
/// <reference types="webdriver" /> | ||
import type { Browser } from 'puppeteer-core/lib/cjs/puppeteer/common/Browser'; | ||
interface DevToolsOptions { | ||
ignoreDefaultArgs?: string[] | boolean; | ||
headless?: boolean; | ||
defaultViewport?: { | ||
width: number; | ||
height: number; | ||
}; | ||
} | ||
interface ExtendedCapabilities extends WebDriver.Capabilities { | ||
'wdio:devtoolsOptions'?: DevToolsOptions; | ||
} | ||
import type { ExtendedCapabilities } from './types'; | ||
export default function launch(capabilities: ExtendedCapabilities): Promise<Browser>; | ||
export {}; | ||
//# sourceMappingURL=launcher.d.ts.map |
@@ -1,3 +0,2 @@ | ||
/// <reference types="@wdio/protocols" /> | ||
/// <reference types="webdriver" /> | ||
import { CommandParameters, CommandPathVariables, ElementReference } from '@wdio/protocols'; | ||
import type { Logger } from '@wdio/logger'; | ||
@@ -10,8 +9,8 @@ import type { ElementHandle } from 'puppeteer-core/lib/cjs/puppeteer/common/JSHandle'; | ||
import type DevToolsDriver from './devtoolsdriver'; | ||
export declare const validate: (command: string, parameters: WDIOProtocols.CommandParameters[], variables: WDIOProtocols.CommandPathVariables[], ref: string, args: any[]) => Record<string, any>; | ||
export declare const validate: (command: string, parameters: CommandParameters[], variables: CommandPathVariables[], ref: string, args: any[]) => Record<string, any>; | ||
export declare function getPrototype(commandWrapper: Function): Record<string, { | ||
value: Function; | ||
}>; | ||
export declare function findElement(this: DevToolsDriver, context: Frame | Page | ElementHandle, using: string, value: string): Promise<WebDriver.ElementReference | Error>; | ||
export declare function findElements(this: DevToolsDriver, context: Page | Frame | ElementHandle, using: string, value: string): Promise<WebDriver.ElementReference[]>; | ||
export declare function findElement(this: DevToolsDriver, context: Frame | Page | ElementHandle, using: string, value: string): Promise<ElementReference | Error>; | ||
export declare function findElements(this: DevToolsDriver, context: Page | Frame | ElementHandle, using: string, value: string): Promise<ElementReference[]>; | ||
export declare function sanitizeError(err: Error): Error; | ||
@@ -18,0 +17,0 @@ export declare function transformExecuteArgs(this: DevToolsDriver, args?: any[]): Promise<ElementHandle | any>; |
{ | ||
"name": "devtools", | ||
"version": "6.12.1", | ||
"version": "7.0.0-beta.0", | ||
"description": "A Chrome DevTools protocol binding that maps WebDriver commands into Chrome DevTools commands using Puppeteer", | ||
"author": "Christian Bromann <christian@saucelabs.com>", | ||
"homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/devtools", | ||
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/devtools", | ||
"license": "MIT", | ||
"main": "./build/index", | ||
"engines": { | ||
"node": ">=10.0.0" | ||
"node": ">=12.0.0" | ||
}, | ||
"types": "./devtools.d.ts", | ||
"types": "./build/index.d.ts", | ||
"typeScriptVersion": "3.8.3", | ||
@@ -25,6 +25,7 @@ "repository": { | ||
"dependencies": { | ||
"@wdio/config": "6.12.1", | ||
"@wdio/logger": "6.10.10", | ||
"@wdio/protocols": "6.12.0", | ||
"@wdio/utils": "6.11.0", | ||
"@wdio/config": "7.0.0-beta.0", | ||
"@wdio/logger": "7.0.0-beta.0", | ||
"@wdio/protocols": "7.0.0-beta.0", | ||
"@wdio/types": "7.0.0-beta.0", | ||
"@wdio/utils": "7.0.0-beta.0", | ||
"chrome-launcher": "^0.13.1", | ||
@@ -41,3 +42,3 @@ "edge-paths": "^2.1.0", | ||
}, | ||
"gitHead": "063970498c9b1142482a1a035aa699c64cc8215c" | ||
"gitHead": "bf31660d60ad4dacf04d11ff1590e794dd377dc0" | ||
} |
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
147937
239
2540
10
2
+ Added@wdio/types@7.0.0-beta.0
+ Added@sindresorhus/is@4.6.0(transitive)
+ Added@szmarczak/http-timer@4.0.6(transitive)
+ Added@types/cacheable-request@6.0.3(transitive)
+ Added@types/http-cache-semantics@4.0.4(transitive)
+ Added@types/keyv@3.1.4(transitive)
+ Added@types/responselike@1.0.3(transitive)
+ Added@wdio/config@7.0.0-beta.0(transitive)
+ Added@wdio/logger@7.0.0-beta.0(transitive)
+ Added@wdio/protocols@7.0.0-beta.0(transitive)
+ Added@wdio/types@7.0.0-beta.0(transitive)
+ Added@wdio/utils@7.0.0-beta.0(transitive)
+ Addedcacheable-lookup@5.0.4(transitive)
+ Addedcacheable-request@7.0.4(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addeddecompress-response@6.0.0(transitive)
+ Addeddefer-to-connect@2.0.1(transitive)
+ Addedgot@11.8.6(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedhttp2-wrapper@1.0.3(transitive)
+ Addedjson-buffer@3.0.1(transitive)
+ Addedkeyv@4.5.4(transitive)
+ Addedlowercase-keys@2.0.0(transitive)
+ Addedmimic-response@1.0.13.1.0(transitive)
+ Addednormalize-url@6.1.0(transitive)
+ Addedp-cancelable@2.1.1(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedresolve-alpn@1.2.1(transitive)
+ Addedresponselike@2.0.1(transitive)
- Removed@wdio/config@6.12.1(transitive)
- Removed@wdio/logger@6.10.10(transitive)
- Removed@wdio/protocols@6.12.0(transitive)
- Removed@wdio/utils@6.11.0(transitive)
Updated@wdio/config@7.0.0-beta.0
Updated@wdio/logger@7.0.0-beta.0
Updated@wdio/protocols@7.0.0-beta.0
Updated@wdio/utils@7.0.0-beta.0