w3wallets 0.7.0 → 0.8.1
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/dist/index.js +2 -10
- package/dist/index.mjs +2 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -282,21 +282,13 @@ var Metamask = class extends Wallet {
|
|
|
282
282
|
typeof settingsOrName === "string" ? settingsOrName : settingsOrName.name
|
|
283
283
|
).click();
|
|
284
284
|
}
|
|
285
|
-
// async approve() {
|
|
286
|
-
// return this.usingNotificationPage((p) =>
|
|
287
|
-
// p
|
|
288
|
-
// .locator(
|
|
289
|
-
// '[data-test-id="confirm-footer-button"], [data-test-id="confirm-btn"]',
|
|
290
|
-
// )
|
|
291
|
-
// .click(),
|
|
292
|
-
// );
|
|
293
|
-
// }
|
|
294
285
|
async approve() {
|
|
295
286
|
const p = await this.page.context().newPage();
|
|
296
287
|
await p.goto(`chrome-extension://${this.extensionId}/notification.html`);
|
|
297
288
|
await p.locator(
|
|
298
|
-
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"]'
|
|
289
|
+
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
299
290
|
).click();
|
|
291
|
+
await p.waitForSelector(".main-container-wrapper:empty", { timeout: 1e4 });
|
|
300
292
|
await p.close();
|
|
301
293
|
}
|
|
302
294
|
async deny() {
|
package/dist/index.mjs
CHANGED
|
@@ -248,21 +248,13 @@ var Metamask = class extends Wallet {
|
|
|
248
248
|
typeof settingsOrName === "string" ? settingsOrName : settingsOrName.name
|
|
249
249
|
).click();
|
|
250
250
|
}
|
|
251
|
-
// async approve() {
|
|
252
|
-
// return this.usingNotificationPage((p) =>
|
|
253
|
-
// p
|
|
254
|
-
// .locator(
|
|
255
|
-
// '[data-test-id="confirm-footer-button"], [data-test-id="confirm-btn"]',
|
|
256
|
-
// )
|
|
257
|
-
// .click(),
|
|
258
|
-
// );
|
|
259
|
-
// }
|
|
260
251
|
async approve() {
|
|
261
252
|
const p = await this.page.context().newPage();
|
|
262
253
|
await p.goto(`chrome-extension://${this.extensionId}/notification.html`);
|
|
263
254
|
await p.locator(
|
|
264
|
-
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"]'
|
|
255
|
+
'[data-testid="confirm-footer-button"], [data-testid="confirm-btn"], [data-testid="page-container-footer-next"], [data-testid="confirmation-submit-button"]'
|
|
265
256
|
).click();
|
|
257
|
+
await p.waitForSelector(".main-container-wrapper:empty", { timeout: 1e4 });
|
|
266
258
|
await p.close();
|
|
267
259
|
}
|
|
268
260
|
async deny() {
|