小编jak*_*kub的帖子

点击下载按钮后等待页面加载

在赛普拉斯测试单击()下载按钮后,可以以某种方式跳过等待页面加载,该按钮开始下载但不会重定向到其他页面?

it('name of the test', () =>{
        cy.get('#btnGeneratePdf').click()
        .url().should('contain', "/Closed"); //url is same as before than button for download was clicked

})
Run Code Online (Sandbox Code Playgroud)

testing automated-tests cypress

2
推荐指数
1
解决办法
3191
查看次数

标签 统计

automated-tests ×1

cypress ×1

testing ×1