我正在转换量角器到cypress页面对象模型下面是函数,我想写在cypress像
this.getConfigButtons = function(module) {
return element(by.id("test-sidebar-buttons-" + module));*
}
public getConfigButtons(module:any){
return cy.get('.test-sidebar-buttons-').find(module)**
}
但它不起作用
我想应该是
public getConfigButtons(module:any) {
return cy.get('.test-sidebar-buttons-' + module)