无法与cypress中iframe下的链接进行交互

时间:2020-05-11 07:56:07

标签: cypress

我需要点击iframe下的链接 请参考图片 正在使用

cy.get('#msg_body')。then(function($ iFrameEle){

        const IfrmaesContents= $iFrameEle.contents().find('body')

       cy.wrap(IfrmaesContents).contains('Activate Account').click()[enter image description here][1]

    })

0 个答案:

没有答案