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

@applitools/spec-driver-webdriver

Package Overview
Dependencies
Maintainers
34
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@applitools/spec-driver-webdriver - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

20

dist/spec-driver.js

@@ -29,3 +29,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.build = exports.switchWorld = exports.getWorlds = exports.getCurrentWorld = exports.performAction = exports.getElementAttribute = exports.getElementRegion = exports.setOrientation = exports.getOrientation = exports.getSystemBars = exports.scrollIntoView = exports.hover = exports.click = exports.takeScreenshot = exports.visit = exports.getUrl = exports.getTitle = exports.getDriverInfo = exports.getCapabilities = exports.getCookies = exports.setWindowSize = exports.getWindowSize = exports.getElementText = exports.setElementText = exports.findElements = exports.findElement = exports.childContext = exports.parentContext = exports.mainContext = exports.executeScript = exports.isEqualElements = exports.isStaleElementError = exports.extractHostName = exports.untransformSelector = exports.transformSelector = exports.transformElement = exports.transformDriver = exports.isSelector = exports.isShadowRoot = exports.isElement = exports.isDriver = void 0;
exports.build = exports.switchWorld = exports.getWorlds = exports.getCurrentWorld = exports.performAction = exports.getElementAttribute = exports.getElementRegion = exports.setOrientation = exports.getOrientation = exports.getSystemBars = exports.scrollIntoView = exports.hover = exports.click = exports.takeScreenshot = exports.visit = exports.getUrl = exports.getTitle = exports.getDriverInfo = exports.getCapabilities = exports.getCookies = exports.getSessionMetadata = exports.setWindowSize = exports.getWindowSize = exports.getElementText = exports.setElementText = exports.findElements = exports.findElement = exports.childContext = exports.parentContext = exports.mainContext = exports.executeScript = exports.isEqualElements = exports.isStaleElementError = exports.extractHostName = exports.untransformSelector = exports.transformSelector = exports.transformElement = exports.transformDriver = exports.isSelector = exports.isShadowRoot = exports.isElement = exports.isDriver = void 0;
const url_1 = require("url");

@@ -122,6 +122,3 @@ const utils = __importStar(require("@applitools/utils"));

if ((_a = driver.proxy) === null || _a === void 0 ? void 0 : _a.url) {
const agent = new proxy_agent_1.default({
...(0, url_1.parse)(driver.proxy.url),
rejectUnauthorized: false,
});
const agent = new proxy_agent_1.default({ ...(0, url_1.parse)(driver.proxy.url), rejectUnauthorized: false });
agent.callback = utils.general.wrap(agent.callback.bind(agent), (fn, request, options, ...rest) => {

@@ -299,2 +296,15 @@ return fn(request, { ...options, rejectUnauthorized: false }, ...rest);

exports.setWindowSize = setWindowSize;
// NOTE: this command is meant to be called when running with the eg-client
// otherwise it will not be implemented on the driver and throw
async function getSessionMetadata(driver) {
const cmd = (0, webdriver_1.command)('GET', '/session/:sessionId/applitools/metadata', {
command: 'getSessionMetadata',
description: '',
ref: '',
parameters: [],
});
const result = await cmd.call(driver);
return result;
}
exports.getSessionMetadata = getSessionMetadata;
async function getCookies(driver, context) {

@@ -301,0 +311,0 @@ if (context)

{
"name": "@applitools/spec-driver-webdriver",
"version": "1.0.4",
"version": "1.0.5",
"keywords": [

@@ -69,4 +69,4 @@ "webdriver",

"dependencies": {
"@applitools/driver": "1.11.20",
"@applitools/utils": "1.3.22",
"@applitools/driver": "1.11.25",
"@applitools/utils": "1.3.26",
"proxy-agent": "5.0.0"

@@ -76,5 +76,5 @@ },

"@applitools/api-extractor": "1.2.11",
"@applitools/bongo": "^2.2.0",
"@applitools/bongo": "^2.2.2",
"@applitools/scripts": "1.2.0",
"@applitools/test-utils": "1.5.5",
"@applitools/test-utils": "1.5.8",
"@types/mocha": "^9.1.1",

@@ -91,2 +91,3 @@ "@types/node": "12",

"mocha": "^9.2.2",
"nock": "^13.2.9",
"prettier": "^2.6.2",

@@ -93,0 +94,0 @@ "ts-node": "^10.8.0",

@@ -24,2 +24,3 @@ declare const _default: import('@applitools/driver').SpecDriver<Driver, Driver, Element, Selector>;

export function setWindowSize(driver: Driver, size: { width: number; height: number; }): Promise<void>;
export function getSessionMetadata(driver: Driver): Promise<void | []>;
export function getCookies(driver: Driver, context?: undefined | boolean): Promise<Array<import('@applitools/driver').Cookie>>;

@@ -26,0 +27,0 @@ export function getCapabilities(driver: Driver): Promise<Record<string, any>>;

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