virtual_login

from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.set_window_position(30, 40)
driver.set_window_size(1000,700)

driver.get('http://jwgl.bistu.edu.cn/(ezr54555cv4x0yuccofymdua)/default2.aspx')
driver.find_element_by_id('txtUserName').clear()
driver.find_element_by_id('txtUserName').send_keys('username')
driver.find_element_by_id('TextBox2').clear()
driver.find_element_by_id('TextBox2').send_keys('password')
#driver.find_element_by_id('Button1').click()

posted on 2016-12-29 16:17  BruceSue  阅读(214)  评论(1编辑  收藏  举报

导航