Mac无法使用
COMMAND您需要的
Keys.BACKSPACE试试:
driver = self.driverpassword = driver.find_element_by_xpath("//input[@name='password']")password.clear()password.send_keys(password)password.send_keys(Keys.RETURN)#password = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.XPATH, "//input[@name='password']")))#or#time.sleep(1)for i in range(len(password)): password.send_keys(Keys.BACKSPACE)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)