def enter_search_keys(self):
"""
execute the job search by entering job and location information.
The location is pre-filled with text, so we must clear it before
entering our search.
"""
driver = self.driver
WebDriverWait(driver, 120).until(
EC.presence_of_element_located(
(By.ID, "keyword-search-box")
)
)
# Enter search criteria
elem = driver.find_element_by_id("keyword-search-box")
elem.send_keys(self.keyword)
# clear the text in the location box then enter location
elem = driver.find_element_by_id("location-search-box").clear()
elem = driver.find_element_by_id("location-search-box")
elem.send_keys(self.location)
elem.send_keys(Keys.RETURN)
time.sleep(3)
评论列表
文章目录