???????selenium ??python???????????????????????????????檔
???????д????????????????????????debug?????????????????????????????ο????????????У?????????????

# -*- coding: utf-8 -*-
#get_info_of_working.py   python2.7.x
#orangleliu@gmail.com    2014-04-24
'''''

???????????????????????? ?????????????????

 

'''
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
def  login_system(driver):
'''''

??????????????????

 

'''
login_url = 'http://att.xx.com/'
username = 'zhizhi.liu'
password = '1234'
driver.get(login_url)
driver.find_element_by_id("username").clear()
driver.find_element_by_id("username").send_keys(username)
driver.find_element_by_id("password").clear()
driver.find_element_by_id("password").send_keys(password)
driver.find_elements_by_tag_name("form")[0].submit()
driver.get('http://att.xx.com/TRecordList.action')
if __name__ == "__main__":
driver = webdriver.Firefox()
login_system(driver)