This commit is contained in:
13
scripts/multi_account_manager.py
Normal file
13
scripts/multi_account_manager.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from selenium_driver import start_selenium_driver
|
||||
|
||||
def manage_multiple_accounts(account_info, ticket_settings):
|
||||
target_url = account_info['target_url']
|
||||
driver = start_selenium_driver(target_url)
|
||||
|
||||
# 登录流程
|
||||
driver.find_element(By.ID, "username_field").send_keys(account_info['username'])
|
||||
driver.find_element(By.ID, "password_field").send_keys(account_info['password'])
|
||||
driver.find_element(By.ID, "login_button").click()
|
||||
|
||||
# 执行抢票操作
|
||||
# 更多的操作...
|
||||
Reference in New Issue
Block a user