如何解决使用 CodeceptJs 关闭当前选项卡时会话 ID 无效
我收到了 <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
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。