@applitools/eyes-selenium 4.56.3 → 4.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/dist/api.js +1 -1
- package/dist/index.js +0 -5
- package/dist/spec-driver.js +3 -342
- package/package.json +20 -23
- package/types/index.d.ts +1362 -1997
- package/dist/legacy.js +0 -78
package/dist/legacy.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.wrapDriver = void 0;
|
|
4
|
-
function wrapDriver(driver) {
|
|
5
|
-
const api = {
|
|
6
|
-
get remoteWebDriver() {
|
|
7
|
-
return driver;
|
|
8
|
-
},
|
|
9
|
-
getRemoteWebDriver() {
|
|
10
|
-
return driver;
|
|
11
|
-
},
|
|
12
|
-
async findElementById(id) {
|
|
13
|
-
return driver.findElement({ id });
|
|
14
|
-
},
|
|
15
|
-
async findElementsById(id) {
|
|
16
|
-
return driver.findElements({ id });
|
|
17
|
-
},
|
|
18
|
-
async findElementByName(name) {
|
|
19
|
-
return driver.findElement({ name });
|
|
20
|
-
},
|
|
21
|
-
async findElementsByName(name) {
|
|
22
|
-
return driver.findElements({ name });
|
|
23
|
-
},
|
|
24
|
-
async findElementByCssSelector(css) {
|
|
25
|
-
return driver.findElement({ css });
|
|
26
|
-
},
|
|
27
|
-
async findElementsByCssSelector(css) {
|
|
28
|
-
return driver.findElements({ css });
|
|
29
|
-
},
|
|
30
|
-
async findElementByClassName(className) {
|
|
31
|
-
throw driver.findElement({ className });
|
|
32
|
-
},
|
|
33
|
-
async findElementsByClassName(className) {
|
|
34
|
-
throw driver.findElements({ className });
|
|
35
|
-
},
|
|
36
|
-
async findElementByLinkText(linkText) {
|
|
37
|
-
throw driver.findElement({ linkText });
|
|
38
|
-
},
|
|
39
|
-
async findElementsByLinkText(linkText) {
|
|
40
|
-
throw driver.findElements({ linkText });
|
|
41
|
-
},
|
|
42
|
-
async findElementByPartialLinkText(partialLinkText) {
|
|
43
|
-
throw driver.findElement({ partialLinkText });
|
|
44
|
-
},
|
|
45
|
-
async findElementsByPartialLinkText(partialLinkText) {
|
|
46
|
-
throw driver.findElements({ partialLinkText });
|
|
47
|
-
},
|
|
48
|
-
async findElementByTagName(tagName) {
|
|
49
|
-
return driver.findElement({ tagName });
|
|
50
|
-
},
|
|
51
|
-
async findElementsByTagName(tagName) {
|
|
52
|
-
return driver.findElements({ tagName });
|
|
53
|
-
},
|
|
54
|
-
async findElementByXPath(xpath) {
|
|
55
|
-
return driver.findElement({ xpath });
|
|
56
|
-
},
|
|
57
|
-
async findElementsByXPath(xpath) {
|
|
58
|
-
return driver.findElements({ xpath });
|
|
59
|
-
},
|
|
60
|
-
async getBrowserName() {
|
|
61
|
-
const capabilities = await driver.getCapabilities();
|
|
62
|
-
return capabilities.getBrowserName();
|
|
63
|
-
},
|
|
64
|
-
async getBrowserVersion() {
|
|
65
|
-
const capabilities = await driver.getCapabilities();
|
|
66
|
-
return capabilities.getBrowserVersion();
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
return new Proxy(driver, {
|
|
70
|
-
get(target, key, receiver) {
|
|
71
|
-
if (Object.hasOwnProperty.call(api, key)) {
|
|
72
|
-
return Reflect.get(api, key, receiver);
|
|
73
|
-
}
|
|
74
|
-
return Reflect.get(target, key);
|
|
75
|
-
},
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
exports.wrapDriver = wrapDriver;
|