@auxcode/auxta 1.3.81 → 1.3.82
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.
|
@@ -60,7 +60,7 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
61
|
const message = `I clicked on the '${text}' '${selector}'`;
|
|
62
62
|
try {
|
|
63
|
-
const [linkHandlers] = yield page
|
|
63
|
+
const [linkHandlers] = yield page.$$(`xpath/.//${selector}[contains(${dotOrText},"${text}")]`);
|
|
64
64
|
if (linkHandlers) {
|
|
65
65
|
yield linkHandlers.click(options);
|
|
66
66
|
log_service_1.default.push('Then', message, status_of_step_1.StatusOfStep.PASSED);
|
|
@@ -81,7 +81,7 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
81
81
|
return __awaiter(this, void 0, void 0, function* () {
|
|
82
82
|
const message = `I click on the '${text}' '${selector}'`;
|
|
83
83
|
try {
|
|
84
|
-
const [linkHandlers] = yield page
|
|
84
|
+
const [linkHandlers] = yield page.$$(`xpath/.//${class_selector}[contains(@class,${this.getEscapedText(class_name)})]//${selector}[contains(${dotOrText},"${text}")]`);
|
|
85
85
|
if (linkHandlers) {
|
|
86
86
|
yield linkHandlers.click();
|
|
87
87
|
log_service_1.default.push('Then', message, status_of_step_1.StatusOfStep.PASSED);
|
|
@@ -101,7 +101,7 @@ class FunctionHelper extends extend_default_page_1.ExtendDefaultPage {
|
|
|
101
101
|
yield page.waitForSelector(selector, {
|
|
102
102
|
timeout: this.defaultTimeout
|
|
103
103
|
});
|
|
104
|
-
const linkHandlers = yield page
|
|
104
|
+
const linkHandlers = yield page.$$(`xpath/.//${selector}[contains(${dotOrText},"${text}")]`);
|
|
105
105
|
if (linkHandlers.length > 0) {
|
|
106
106
|
log_service_1.default.push('And', message, status_of_step_1.StatusOfStep.PASSED);
|
|
107
107
|
return true;
|