我想编写代码以登录“ Origin”平台
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
import time
options = Options()
options.binary_location = "C:/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"
driver = webdriver.Chrome(chrome_options=options)
driver.get("https://www.origin.com/irl/en-us/store")
time.sleep(5)
Menu_Button = driver.find_element_by_xpath("//*[@id='shell']/section/div/nav/div/div[1]/div[2]").click()
Sign_in_Button = driver.find_element_by_xpath("//div[@class='origin-cta-primary origin-telemetry-cta-primary']").click()
time.sleep(10)
Email_Adress = driver.find_element_by_xpath("//input[@name='email']").send_keys("Deneme")
Password = driver.find_element_by_xpath("//input[@name='password']").send_keys("Deneme123")
Login_Button = driver.find_element_by_xpath("//a[@id='logInBtn']").click()
按下“登录”按钮会打开一个新窗口,输入ID密码,但我无法管理它