# coding:utf8
from selenium import webdriver

driver = webdriver.Chrome(r"C:\Program Files (x86)\Google\Chrome\Application\chromedriver.exe")
driver.implicitly_wait(10)

driver.get('https://www.baidu.com/')
print(driver.title)
print(driver.current_url)

driver.find_element_by_id("kw").send_keys('松勤\n')
driver.find_element_by_id('1')
print(driver.title)
print(driver.current_url)

driver.quit()

相关文章:

  • 2021-09-27
  • 2021-09-07
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-29
  • 2022-12-23
  • 2021-11-05
  • 2021-05-27
  • 2022-12-23
  • 2021-08-11
  • 2022-02-10
相关资源
相似解决方案