
selenium
侠之大者为国为民
这个人很懒
展开
-
selenium ide rollup
通过编写user-extension.js文件,整合常用的脚本功能 var manager = new RollupManager(); manager.addRollupRule({ name:'login_commands', description:'log in to 126.com', args:[], commandMatchers:[], getExpandedComma原创 2016-05-30 11:14:40 · 860 阅读 · 1 评论 -
JAVA环境下的selenium脚本
配置参考文章 点击打开链接 记录下导入和结构 package com.selenium.Test; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.*;原创 2016-05-30 14:45:37 · 1359 阅读 · 0 评论 -
126邮箱登录退出模块
使用selenium+python实现126邮箱的登录和退出 疑难点: 1. 帐号和密码的input标签在框架中,需要使用switch_to.frame()切换到对应frame后查找元素 2. 登录后需要使用switch_to.default_content()切换到默认页面,否则后续操作会报错 dead object 3. 定位登录后的username时,使用WebDriverWait来设置等待原创 2017-11-30 11:28:52 · 1508 阅读 · 0 评论