Just for myself using...
#!/usr/bin/python
# -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#browser = webdriver.Firefox()
browser = webdriver.Chrome()
browser.get('http://wenku.baidu.com')
time.sleep(1)
#assert 'Yahoo' in browser.title
#browser.find_element_by_xpath("//*[@id='u1']/a[6]").click();
#browser.find_element_by_name("username").clear();
browser.find_element_by_name("username").send_keys("*********@126.com");
#browser.find_element_by_name("password").clear();
browser.find_element_by_name("password").send_keys("#############");
browser.find_element_by_id("kw").send_keys("selenium")
browser.find_element_by_id("su").click()
time.sleep(50)
#elem = browser.find_element_by_name('p') # Find the search box
#elem.send_keys('seleniumhq' + Keys.RETURN)
browser.close();
browser.quit()