我需要在正在开发的Chrome扩展程序上运行自动化测试。第一步是验证/登录GSuite日历。
我正在使用赛普拉斯,但不允许我登录到GSuite日历。而是(从赛普拉斯)“单击登录”时,它将Next再次跳至该按钮。
describe('Login',function() {
it('Go to GSuite calendar', function() {
cy.visit('https://www.google.com/calendar')
})
it('Login', function() {
cy.get('#Email').type('my user')
cy.get('#next').click()
cy.get('#Passwd').type('my password')
cy.get('#signIn').click()
})
})
Run Code Online (Sandbox Code Playgroud)
这失败,将我带到Next按钮
from selenium import webdriver
import time
# variables for userid & password
u = "JohnDoe@xxxx-labs.com"
p = "Mysecretpassword"
# chromedriver installation required for login through google chrome
driverpath = "C:/Users/pjain2/Desktop/chromedriver_win32/chromedriver"
# launch google calendar login page
d = webdriver.Chrome(driverpath) …Run Code Online (Sandbox Code Playgroud)