【发布时间】:2021-09-27 16:44:10
【问题描述】:
所以我想在 playwright 中将多个 storageStates 加载到单个上下文中,但是当我这样做时
const context = await browser.newContext({
storageState: "telegram.json",storageState: "google.json"
});
或者这个
const context = await browser.newContext({
storageState: ["telegram.json","google.json"]
});
没有加载任何状态。
但是下面的代码会加载一个 storageState
const context = await browser.newContext({
storageState: "telegram.json"
});
我如何做到这一点?
【问题讨论】:
标签: javascript node.js selenium automation playwright