问题描述
我收到了 <div class="container">
<div class="row align-items-center">
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
<div class="col">
One of three columns
</div>
</div>
</div>
尝试使用 CodeceptJs 和 invalid session id
关闭当前选项卡时出错,并且不确定如何解决此问题,因为此处的大多数问题似乎都与其他框架(例如 Selenium)有关。
解决方法
我让它工作了,看来您实际上需要切换回主标签,然后关闭其他标签 代替
When('The user switches back to the main tab',async () => {
await I.switchTo();
await I.closeOtherTabs();
});
更多信息here