Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/flash/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 单击内部,然后单击cypress_Javascript_Cypress - Fatal编程技术网

Javascript 单击内部,然后单击cypress

Javascript 单击内部,然后单击cypress,javascript,cypress,Javascript,Cypress,cy.get(“tbody>tr”) .first() .然后((el)=>{ 控制台日志(el); el.get(“td.edit>按钮”)。单击(); }); 乱数假文 按钮 乱数假文 您必须使用cy.wrap() 您必须使用cy.wrap() cy.get("tbody > tr") .first() .then((el) => { cy.wrap(el).find("td.edit > button").clic

cy.get(“tbody>tr”)
.first()
.然后((el)=>{
控制台日志(el);
el.get(“td.edit>按钮”)。单击();
});

乱数假文
按钮
乱数假文

您必须使用
cy.wrap()


您必须使用
cy.wrap()

cy.get("tbody > tr")
  .first()
  .then((el) => {
    cy.wrap(el).find("td.edit > button").click();
  });