首页 > 解决方案 > CodeceptJS 完成后关闭浏览器窗口

问题描述

我是新手CodeceptJSPuppeteer我想让我的窗口浏览器在完成后打开。

Feature('Login');

Scenario('test', (I) => {
    I.amOnPage('https://google.es')

});

标签: testingautomated-testspuppeteercodeceptjs

解决方案


只需将 pause() 作为测试用例的最后一行

Feature('Login');

Scenario('test', (I) => {
    I.amOnPage('https://google.es')
    pause(); 

});

推荐阅读