lhest

Untitled

Jul 21st, 2018
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import sys, os, webbrowser
  2. # -*- coding: utf-8 -*-
  3. from selenium import webdriver
  4. # create a new Chrome session
  5. driver = webdriver.Chrome()
  6. driver.implicitly_wait(30)
  7. # navigate to the application home page
  8. driver.get("https://sinoptik.ua/")
  9. driver.implicitly_wait(80)
  10. searchField = driver.find_element_by_css_selector("p.input. id='search_city'.class='ac_input'")[0].send_keys('Драгобрат')
  11. driver.quit()
Add Comment
Please, Sign In to add comment