我得到一个invalid session id
当试图使用CodeceptJs和I.closeCurrentTab()
关闭我当前的选项卡时出错,并且不确定如何解决这个问题,因为这里的大多数问题似乎都是关于其他框架的,比如Selenium。
我让它工作起来了,看起来你实际上需要切换回主选项卡,然后关闭其他选项卡而不是
When('The user switches back to the main tab', async () => {
await I.switchTo();
await I.closeOtherTabs();
});
更多信息点击这里