#coding=utf-8
from selenium import webdriver
import time
from common import location

#调用location.py 文件的定位方法
we = location
#dr = webdriver.Chrome()
dr = webdriver.Firefox()
dr.get('http://www.baidu.com')
#调用封装的方法
we.findId(dr, "kw").send_keys('selenium')
time.sleep(2)
we.findId(dr, "su").click()
time.sleep(2)
dr.quit()

8ac0802d4d632e63bd6d640bb3cf4338bff9b15e
<mask token>

<mask token>
dr.get('http://www.baidu.com')
we.findId(dr, 'kw').send_keys('selenium')
time.sleep(2)
we.findId(dr, 'su').click()
time.sleep(2)
dr.quit()

<mask token>
we = location
dr = webdriver.Firefox()
dr.get('http://www.baidu.com')
we.findId(dr, 'kw').send_keys('selenium')
time.sleep(2)
we.findId(dr, 'su').click()
time.sleep(2)
dr.quit()

from selenium import webdriver
import time
from common import location
we = location
dr = webdriver.Firefox()
dr.get('http://www.baidu.com')
we.findId(dr, 'kw').send_keys('selenium')
time.sleep(2)
we.findId(dr, 'su').click()
time.sleep(2)
dr.quit()

#coding=utf-8
from selenium import webdriver
import time
from common import location

#调用location.py 文件的定位方法
we = location
#dr = webdriver.Chrome()
dr = webdriver.Firefox()
dr.get('http://www.baidu.com')
#调用封装的方法
we.findId(dr, "kw").send_keys('selenium')
time.sleep(2)
we.findId(dr, "su").click()
time.sleep(2)
dr.quit()
