@qawolf/web
Advanced tools
Comparing version 0.5.4 to 0.5.6
@@ -111,2 +111,3 @@ "use strict"; | ||
return { | ||
alt: element.alt || null, | ||
ariaLabel: element.getAttribute("aria-label") || null, | ||
@@ -126,2 +127,3 @@ classList: (element.className || "").length | ||
placeholder: exports.getPlaceholder(element), | ||
src: element.src || null, | ||
innerText: exports.getTextContent(element), | ||
@@ -128,0 +130,0 @@ tagName, |
@@ -11,7 +11,7 @@ import * as element from "./element"; | ||
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" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "tagName" | "innerText" | "xpath", targetValue: string | boolean | string[] | null | undefined, compareValue: string | boolean | string[] | null | undefined) => { | ||
key: "dataValue" | "title" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "tagName" | "innerText" | "xpath"; | ||
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"; | ||
percent: number; | ||
}, compareDescriptors: (target: import("@qawolf/types").ElementDescriptor, compare: import("@qawolf/types").ElementDescriptor) => { | ||
key: "dataValue" | "title" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "tagName" | "innerText" | "xpath"; | ||
key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath"; | ||
percent: number; | ||
@@ -18,0 +18,0 @@ }[], countPresentKeys: (descriptor: import("@qawolf/types").ElementDescriptor) => number, isNil: (value?: any) => boolean; |
@@ -23,4 +23,4 @@ import { ElementDescriptor } from "@qawolf/types"; | ||
export declare const compareArrays: (base?: string[] | null | undefined, compare?: string[] | null | undefined) => number; | ||
export declare const compareDescriptorKey: (key: "dataValue" | "title" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "tagName" | "innerText" | "xpath", targetValue: DescriptorValue, compareValue: DescriptorValue) => { | ||
key: "dataValue" | "title" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "tagName" | "innerText" | "xpath"; | ||
export declare const compareDescriptorKey: (key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath", targetValue: DescriptorValue, compareValue: DescriptorValue) => { | ||
key: "dataValue" | "title" | "alt" | "ariaLabel" | "classList" | "href" | "iconContent" | "id" | "inputType" | "isContentEditable" | "labels" | "name" | "parentText" | "placeholder" | "src" | "tagName" | "innerText" | "xpath"; | ||
percent: number; | ||
@@ -27,0 +27,0 @@ }; |
@@ -6,2 +6,3 @@ "use strict"; | ||
const strongMatchKeys = [ | ||
"alt", | ||
"iconContent", | ||
@@ -12,3 +13,4 @@ "id", | ||
"name", | ||
"placeholder" | ||
"placeholder", | ||
"src" | ||
]; | ||
@@ -15,0 +17,0 @@ exports.compareArrays = (base, compare) => { |
@@ -165,2 +165,3 @@ var qawolf = (function (exports) { | ||
return { | ||
alt: element.alt || null, | ||
ariaLabel: element.getAttribute("aria-label") || null, | ||
@@ -180,2 +181,3 @@ classList: (element.className || "").length | ||
placeholder: getPlaceholder(element), | ||
src: element.src || null, | ||
innerText: getTextContent(element), | ||
@@ -263,2 +265,3 @@ tagName: tagName, | ||
var strongMatchKeys = [ | ||
"alt", | ||
"iconContent", | ||
@@ -269,3 +272,4 @@ "id", | ||
"name", | ||
"placeholder" | ||
"placeholder", | ||
"src" | ||
]; | ||
@@ -272,0 +276,0 @@ var compareArrays = function (base, compare) { |
{ | ||
"name": "@qawolf/web", | ||
"description": "qawolf web library", | ||
"version": "0.5.4", | ||
"version": "0.5.6", | ||
"license": "BSD-3.0", | ||
@@ -27,3 +27,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@qawolf/types": "^0.5.0", | ||
"@qawolf/types": "^0.5.6", | ||
"rollup": "^1.23.1", | ||
@@ -34,3 +34,3 @@ "rollup-plugin-commonjs": "^10.1.0", | ||
}, | ||
"gitHead": "00c193cb2a3bd7e703c6aafaf7fa60fa1255a2a4" | ||
"gitHead": "1098cb22fe3a79e6e5269861ec9eb0d25bcd3a18" | ||
} |
@@ -144,2 +144,3 @@ import { ElementDescriptor } from "@qawolf/types"; | ||
return { | ||
alt: (element as HTMLImageElement).alt || null, | ||
ariaLabel: element.getAttribute("aria-label") || null, | ||
@@ -159,2 +160,3 @@ classList: (element.className || "").length | ||
placeholder: getPlaceholder(element), | ||
src: (element as HTMLImageElement).src || null, | ||
innerText: getTextContent(element), | ||
@@ -161,0 +163,0 @@ tagName, |
@@ -27,2 +27,3 @@ import { ElementDescriptor } from "@qawolf/types"; | ||
const strongMatchKeys: (keyof ElementDescriptor)[] = [ | ||
"alt", | ||
"iconContent", | ||
@@ -33,3 +34,4 @@ "id", | ||
"name", | ||
"placeholder" | ||
"placeholder", | ||
"src" | ||
]; | ||
@@ -36,0 +38,0 @@ |
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
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
122891
2390