今天弄了半天selenum,发现很恶心,51job采取此方法,输入关键字,然后在搜索,怎么都没反映;

但此方法尝试腾讯招聘,可以操作,但输入的文字信息识别不到。

暂时采取URL拼接关键字的方法,继续下面的测试吧

browser=webdriver.Chrome()
browser.get(seed_url)
time.sleep(5)


input_text=browser.find_element_by_xpath('//input[@class="search-input input-value"]')
actions = ActionChains(browser)
actions.move_to_element(input_text).send_keys("python").perform()
time.sleep(5)
search=browser.find_element_by_xpath('//span[@class="search-btn"]')
actions.click(search).perform()

相关文章:

  • 2021-06-14
  • 2023-02-25
  • 2021-12-27
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
猜你喜欢
  • 2021-10-12
  • 2021-05-07
  • 2022-12-23
  • 2021-08-30
  • 1970-01-01
  • 2021-05-11
  • 2022-12-23
相关资源
相似解决方案