Код: Выделить всё
[h4]Moved from Registered Address[/h4]
Review for consideration of challenge
[url=/assignedVoters]View All[/url]
[url=/assignedVoters?activeOnly=true]View Active[/url]
[h4]Non-Standard Addresses[/h4]
Sorted by largest # of registrations
[url=/addressWithIssues]View All[/url]
[url=/addressWithIssues?activeOnly=true]View Active[/url]
[h4]Search by Name[/h4]
Search for records by voter name
[url=/search/name]Search[/url]
[h4]Search by Address[/h4]
Search for records by address
[url=/search/address]Search[/url]
[h4]My Challenges[/h4]
Review records selected for challenge
[url=/reviewChallenges]View Now[/url]
Код: Выделить всё
from re import L
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
cService = webdriver.ChromeService(executable_path="C:\\Users\\Frank\\Documents\\Visual Studio 2022\\Projects\\IV3_WebsiteAutomation\\chromedriver.exe")
driver = webdriver.Chrome(service = cService)
driver.get("https://app.iv3.us/login")
print(driver.title)
search_bar = driver.find_element("name", "userName")
search_bar.send_keys("paynterf@gmail.com")
search_bar = driver.find_element("name", "password")
search_bar.send_keys("-----------------")
search_bar.send_keys(Keys.RETURN)
res = driver.find_element(By.XPATH(".//a[contains(@href,'View Active')]"))
driver.close()
Подробнее здесь: https://stackoverflow.com/questions/785 ... grid-class