【备忘录】cypress获取iframe中元素填值
cy.get("iframe").then(function($iframe){
// query into the iframe
var $body = $iframe.contents().find("body");
var username = cy.wrap($body).find('[name="username"]').type(username)
})
cy.get("iframe").then(function($iframe){
// query into the iframe
var $body = $iframe.contents().find("body");
var username = cy.wrap($body).find('[name="username"]').type(username)
})