@skyramp/skyramp 1.2.27 → 1.2.29
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/package.json
CHANGED
|
@@ -239,7 +239,11 @@ class SkyrampPlaywrightLocator {
|
|
|
239
239
|
async execute() {
|
|
240
240
|
debug(` execute ${ this._locator}.${this.execFname} ${this.execParam ?? ''} ${this.execArgs ?? ''}`)
|
|
241
241
|
const func = this._locator[this.execFname];
|
|
242
|
-
|
|
242
|
+
if (this.execParam !== null && this.execParam !== undefined) {
|
|
243
|
+
return func.call(this._locator, this.execParam, ...this.execArgs);
|
|
244
|
+
} else {
|
|
245
|
+
return func.call(this._locator, ...this.execArgs);
|
|
246
|
+
}
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
generateLLMErrors() {
|
|
@@ -672,6 +676,10 @@ class SkyrampPlaywrightPage {
|
|
|
672
676
|
});
|
|
673
677
|
}
|
|
674
678
|
|
|
679
|
+
unwrap() {
|
|
680
|
+
return this._page;
|
|
681
|
+
}
|
|
682
|
+
|
|
675
683
|
pushLocator(locator) {
|
|
676
684
|
if (this.locators == undefined ) {
|
|
677
685
|
this.locators = [];
|
|
@@ -799,6 +807,9 @@ function expect(obj) {
|
|
|
799
807
|
if (obj instanceof SkyrampPlaywrightLocator) {
|
|
800
808
|
return playwrightExpect(obj.unwrap());
|
|
801
809
|
}
|
|
810
|
+
if (obj instanceof SkyrampPlaywrightPage) {
|
|
811
|
+
return playwrightExpect(obj.unwrap());
|
|
812
|
+
}
|
|
802
813
|
return playwrightExpect(obj);
|
|
803
814
|
}
|
|
804
815
|
|