在Cypress中是否有一种方法来模拟网页的分页功能?
这方面的一个示例场景是网页的分页功能。因此,这个函数或方法将使我能够点击‘下一页’或‘上一页’图标,直到我不能更进一步。
我要求提供信息的代码的一个例子是:
while (cy.get(<locator string>).isClickable()) {
cy.get(<locator string>).click();
//and some other instructions to follow;
}
希望我能正确地描绘它!)
我想在上一页和下一页的Yii2分页中使用引导图标。我在下面的代码中设置了他们的css类,但它不起作用。它会显示图标,但位置不正确,并且没有指向该图标的链接。
'pager' => [
'options' => ['class'=>'pagination'], // set clas name used in ui list of pagination
'prevPageLabel' => '>', // S