• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Rita_LJ
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理

2017年12月21日

python+selenium之字符串切割操作
摘要: python+selenium之字符串切割操作 #coding:utf-8 from selenium import webdriver import time class Base(object): driver = webdriver.Firefox() def openbrowser(self 阅读全文
posted @ 2017-12-21 15:45 Rita_LJ 阅读(1611) 评论(0) 推荐(0)
 
Python+selenium之读取配置文件内容
摘要: Python+selenium之读取配置文件内容 #this is config file,only store browser type and server URL [browserType] #browserName=Firefox browserName=Chrome #browserNam 阅读全文
posted @ 2017-12-21 10:58 Rita_LJ 阅读(1629) 评论(0) 推荐(0)
 
Python_selenium封装一个浏览器引擎类
摘要: Python_selenium封装一个浏览器引擎类 #coding:utf-8 from selenium import webdriver class Browser(object): def __init__(self,driver): self.driver=driver browser_ty 阅读全文
posted @ 2017-12-21 10:57 Rita_LJ 阅读(1774) 评论(1) 推荐(0)
 
Python_selenium二次封装selenium的几个方法
摘要: Python_selenium二次封装selenium的几个方法 将常用的几个webdriver方法封装到自己写的一个类中去,此实例中是将“浏览器后退、浏览器前进、打开站点和关闭浏览器”写进这个类中,此时,我们使用pycharm这个软件来进行测试。 # coding:utf-8 class Base 阅读全文
posted @ 2017-12-21 10:55 Rita_LJ 阅读(3928) 评论(0) 推荐(0)
 
Python_selenium中类函数模块的简单介绍
摘要: Python_selenium中类函数模块的简单介绍 一、demo1.py的代码如下所示 #coding:utf-8 class ClassA(object): string = "这是一个字符串" def instancefunc(self): print "这是一个实例方法" print sel 阅读全文
posted @ 2017-12-21 10:48 Rita_LJ 阅读(807) 评论(0) 推荐(0)
 
 

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3