@redhat-developer/page-objects 1.1.2 → 1.1.3
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.
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
exports.default = default_1;
|
|
19
20
|
const selenium_webdriver_1 = require("selenium-webdriver");
|
|
20
21
|
const AbstractElement_1 = require("./AbstractElement");
|
|
21
22
|
/**
|
|
@@ -82,5 +83,4 @@ function default_1(Base) {
|
|
|
82
83
|
}
|
|
83
84
|
};
|
|
84
85
|
}
|
|
85
|
-
exports.default = default_1;
|
|
86
86
|
//# sourceMappingURL=WebviewMixin.js.map
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.waitForAttributeValue =
|
|
19
|
+
exports.waitForAttributeValue = waitForAttributeValue;
|
|
20
20
|
/**
|
|
21
21
|
* Condition to wait until an element's attribute has a specified value
|
|
22
22
|
* @param element WebElement to check
|
|
@@ -29,5 +29,4 @@ function waitForAttributeValue(element, attribute, value) {
|
|
|
29
29
|
return result === value;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
exports.waitForAttributeValue = waitForAttributeValue;
|
|
33
32
|
//# sourceMappingURL=WaitForAttribute.js.map
|
package/out/index.js
CHANGED
|
@@ -30,7 +30,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
30
30
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
31
31
|
};
|
|
32
32
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
-
exports.
|
|
33
|
+
exports.NotificationType = exports.Notification = exports.ScmChange = exports.ScmProvider = exports.ScmView = void 0;
|
|
34
|
+
exports.initPageObjects = initPageObjects;
|
|
34
35
|
const AbstractElement_1 = require("./components/AbstractElement");
|
|
35
36
|
const loader_1 = require("./locators/loader");
|
|
36
37
|
__exportStar(require("selenium-webdriver"), exports);
|
|
@@ -107,5 +108,4 @@ function initPageObjects(currentVersion, baseVersion, locatorFolder, driver, bro
|
|
|
107
108
|
const locators = new loader_1.LocatorLoader(currentVersion, baseVersion, locatorFolder).loadLocators();
|
|
108
109
|
AbstractElement_1.AbstractElement.init(locators, driver, browserID, currentVersion);
|
|
109
110
|
}
|
|
110
|
-
exports.initPageObjects = initPageObjects;
|
|
111
111
|
//# sourceMappingURL=index.js.map
|
package/out/locators/locators.js
CHANGED
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
* limitations under the License.
|
|
17
17
|
*/
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
19
|
+
exports.hasAttribute = hasAttribute;
|
|
20
|
+
exports.hasClass = hasClass;
|
|
21
|
+
exports.hasNotClass = hasNotClass;
|
|
22
|
+
exports.hasElement = hasElement;
|
|
23
|
+
exports.fromAttribute = fromAttribute;
|
|
24
|
+
exports.fromText = fromText;
|
|
20
25
|
function hasAttribute(attr, value, locator) {
|
|
21
26
|
return async (el) => {
|
|
22
27
|
el = locator ? el.findElement(locator) : el;
|
|
@@ -27,7 +32,6 @@ function hasAttribute(attr, value, locator) {
|
|
|
27
32
|
return attrValue === value;
|
|
28
33
|
};
|
|
29
34
|
}
|
|
30
|
-
exports.hasAttribute = hasAttribute;
|
|
31
35
|
function hasClass(classOrPredicate, locator) {
|
|
32
36
|
return async (el) => {
|
|
33
37
|
el = locator ? el.findElement(locator) : el;
|
|
@@ -37,32 +41,27 @@ function hasClass(classOrPredicate, locator) {
|
|
|
37
41
|
return segments.find(predicate) !== undefined;
|
|
38
42
|
};
|
|
39
43
|
}
|
|
40
|
-
exports.hasClass = hasClass;
|
|
41
44
|
function hasNotClass(klass, locator) {
|
|
42
45
|
return async (el) => {
|
|
43
46
|
el = locator ? el.findElement(locator) : el;
|
|
44
47
|
return !(await hasClass(klass).call(undefined, el));
|
|
45
48
|
};
|
|
46
49
|
}
|
|
47
|
-
exports.hasNotClass = hasNotClass;
|
|
48
50
|
function hasElement(locatorSelector) {
|
|
49
51
|
return async (el, locators) => {
|
|
50
52
|
return (await el.findElements(locatorSelector(locators))).length > 0;
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
|
-
exports.hasElement = hasElement;
|
|
54
55
|
function fromAttribute(attribute, locator) {
|
|
55
56
|
return async (el) => {
|
|
56
57
|
el = locator ? el.findElement(locator) : el;
|
|
57
58
|
return el.getAttribute(attribute);
|
|
58
59
|
};
|
|
59
60
|
}
|
|
60
|
-
exports.fromAttribute = fromAttribute;
|
|
61
61
|
function fromText(locator) {
|
|
62
62
|
return async (el) => {
|
|
63
63
|
el = locator ? el.findElement(locator) : el;
|
|
64
64
|
return el.getText();
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
exports.fromText = fromText;
|
|
68
67
|
//# sourceMappingURL=locators.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-developer/page-objects",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Page Object API implementation for a VS Code editor used by ExTester framework.",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"types": "out/index.d.ts",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"selenium-webdriver": ">=4.6.1",
|
|
47
47
|
"typescript": ">=4.6.2"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "d60b9bb6451e776a9ceefbaee32d9becdee5430d"
|
|
50
50
|
}
|