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

@qawolf/web

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qawolf/web - npm Package Compare versions

Comparing version 0.5.6 to 0.5.7

lib/select.d.ts

8

lib/index.d.ts

@@ -7,2 +7,3 @@ import * as element from "./element";

import { Recorder } from "./Recorder";
import * as select from "./select";
import * as wait from "./wait";

@@ -12,7 +13,7 @@ import * as xpath from "./xpath";

declare const isKeyEvent: (event: import("@qawolf/types").Event | null) => boolean | null;
declare const compareArrays: (base?: string[] | null | undefined, compare?: string[] | null | undefined) => number, compareDescriptorKey: (key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath", targetValue: string | boolean | string[] | null | undefined, compareValue: string | boolean | string[] | null | undefined) => {
key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath";
declare const compareArrays: (base?: string[] | null | undefined, compare?: string[] | null | undefined) => number, compareDescriptorKey: (key: "alt" | "ariaLabel" | "classList" | "dataValue" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "title" | "xpath", targetValue: string | boolean | string[] | null | undefined, compareValue: string | boolean | string[] | null | undefined) => {
key: "alt" | "ariaLabel" | "classList" | "dataValue" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "title" | "xpath";
percent: number;
}, compareDescriptors: (target: import("@qawolf/types").ElementDescriptor, compare: import("@qawolf/types").ElementDescriptor) => {
key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath";
key: "alt" | "ariaLabel" | "classList" | "dataValue" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "title" | "xpath";
percent: number;

@@ -29,2 +30,3 @@ }[], countPresentKeys: (descriptor: import("@qawolf/types").ElementDescriptor) => number, isNil: (value?: any) => boolean;

scroll: (element: Element, value: import("@qawolf/types").ScrollValue, timeoutMs?: number) => Promise<void>;
select: typeof select;
wait: typeof wait;

@@ -31,0 +33,0 @@ xpath: typeof xpath;

@@ -15,2 +15,3 @@ "use strict";

const Recorder_1 = require("./Recorder");
const select = __importStar(require("./select"));
const scroll_1 = require("./scroll");

@@ -38,2 +39,3 @@ const wait = __importStar(require("./wait"));

scroll: scroll_1.scroll,
select,
wait,

@@ -40,0 +42,0 @@ xpath

@@ -667,2 +667,32 @@ var qawolf = (function (exports) {

var waitForOption = function (element, value, timeoutMs) {
if (timeoutMs === void 0) { timeoutMs = 10000; }
return __awaiter(void 0, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
console.log("wait for option", value, element);
return [4 /*yield*/, waitUntil(function () {
var options = element.options;
for (var i = 0; i < options.length; i++) {
if (!options[i].disabled && options[i].value === value) {
return true;
}
}
return false;
}, timeoutMs)];
case 1:
_a.sent();
console.log("found option", value, element);
return [2 /*return*/];
}
});
});
};
var select = /*#__PURE__*/Object.freeze({
__proto__: null,
waitForOption: waitForOption
});
var scroll = function (element, value, timeoutMs) {

@@ -723,2 +753,3 @@ if (timeoutMs === void 0) { timeoutMs = 10000; }

scroll: scroll,
select: select,
wait: wait,

@@ -725,0 +756,0 @@ xpath: xpath

{
"name": "@qawolf/web",
"description": "qawolf web library",
"version": "0.5.6",
"version": "0.5.7",
"license": "BSD-3.0",

@@ -33,3 +33,3 @@ "main": "./lib/index.js",

},
"gitHead": "1098cb22fe3a79e6e5269861ec9eb0d25bcd3a18"
"gitHead": "e9e0ec59744286f261d36a8f82d7059a8a69cd3c"
}

@@ -7,2 +7,3 @@ import * as element from "./element";

import { Recorder } from "./Recorder";
import * as select from "./select";
import { scroll } from "./scroll";

@@ -44,2 +45,3 @@ import * as wait from "./wait";

scroll,
select,
wait,

@@ -46,0 +48,0 @@ xpath

Sorry, the diff of this file is not supported yet

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