鼠标事件-python用opencv批量截取图像指定区域的方法

六、中文乱码问题selenium2在python的send_keys()中输入中文会报错,其实在中文前面加一个u变成unicode就能搞定了七、鼠标事件1、鼠标右击from selenium import webdriver from selenium.webdriver.common.action_chains import ActionChains obj = webdriver.PhantomJS(executable_path="D:\Python27\Scripts\phantomjs.exe") try: obj.get("http://pan.baidu.com") obj.find_element_by_id('TANGRAM__PSP_4__userName').send_keys('13201392325') #定位并输入用户名obj.find_element_by_id('TANGRAM__PSP_4__password').send_keys('18399565576lu') #定位并输入密码obj.find_element_by_id('TANGRAM__PSP_4__submit').submit() #提交表单内容
pdf 文件大小:3.88MB