You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
711 B

3 months ago
from playwright.sync_api import sync_playwright
driver = sync_playwright().start()
browser = driver.chromium.launch(headless=False)
page = browser.new_page()
page.goto('http://ankangfulu.yhz.com')
login_input = page.locator('.ivu-input')
login_input.nth(0).fill('18611659484')
login_input.nth(1).click()
page.wait_for_timeout(1000)
page.locator('.ivu-select-input').click()
all_clince = page.locator('.ivu-select-dropdown-list').locator('.ivu-select-item').all()
for clince in all_clince:
if clince.inner_text() == '厚生堂(测试)诊所':
clince.click()
login_input.nth(1).click()
login_input.nth(1).fill('admin123')
page.locator('.login-form-btn').click()
page.wait_for_timeout(10000)