02 2018 档案

selenium 带框架测试代码
摘要:from selenium import webdriver import unittest import time from selenium.webdriver.firefox.firefox_binary import FirefoxBinary # firfoxdriver 为 你的firefox安装路径 class GloryRoad(unittest.TestCase): d... 阅读全文

posted @ 2018-02-28 14:01 kelx 阅读(150) 评论(0) 推荐(0)

re模块
摘要:group() 会返回匹配此正则表达式的字符串 group(1) 会返回正则表达式中第一个括号内的内容, 以此类推,group(2) 第二个括号 re.search(r'^hello\s(.*)\sfine',b).group() 阅读全文

posted @ 2018-02-24 16:28 kelx

一个python带路径的打开方式
摘要:from selenium import webdriver from selenium.webdriver.firefox.firefox_binary import FirefoxBinary # firfoxdriver 为 你的firefox安装路径 firfoxdriver = 'C:\Program Files (x86)\Mozilla Firefox\Firefox.exe' b... 阅读全文

posted @ 2018-02-11 10:02 kelx 阅读(149) 评论(0) 推荐(0)

导航