是否可以使用 Google 身份验证弹出窗口通过 Cypress.io 登录 Google 帐户?
我可以打开窗口,但赛普拉斯无法检测到电子邮件输入字段的 ID。
错误是:“CypressError:重试超时:应找到元素:'#identifierId',但从未找到它。”
it('Login', function() {
cy.visit('home')
cy.get('#signin-button').click()
cy.get('#google-login-button').click()
// cy.wait(1500) // wait doesn't help
cy.get('#identifierId')
.type('user@gmail.com') // <<-- error here
})