小编Nun*_*zio的帖子

绑定运行 cypress 脚本时“预期缺少分号”

我正在尝试添加.each语法,但收到错误“;丢失”或“需要分号”也在cypress上工作,因为没有;

测试代码:

cy.get('.products').find('.product').each($el, index, $list) => { 
  const VegName = $el.find('h4.product-name').text()
  ...
Run Code Online (Sandbox Code Playgroud)

赛普拉斯版本:^12.11.0

arrow-functions cypress

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

标签 统计

arrow-functions ×1

cypress ×1