随笔分类 -  Selenium and Webdriver

Selenium自动化
只有注册用户登录后才能阅读该文。
posted @ 2018-12-16 23:40 热爱技术的小牛 阅读(13) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-10-18 16:59 热爱技术的小牛 阅读(6) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-05-11 14:46 热爱技术的小牛 阅读(23) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-04-20 10:48 热爱技术的小牛 阅读(6) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-01-12 17:15 热爱技术的小牛 阅读(3) 评论(0) 推荐(0) 编辑
摘要:# -*- coding:utf-8 -*- import os import selenium from selenium import webdriver from selenium.webdriver.common.keys import Keys """ 练习启动各种浏览器:Firefox, 阅读全文
posted @ 2018-01-09 15:25 热爱技术的小牛 阅读(621) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2018-01-09 15:14 热爱技术的小牛 阅读(19) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2017-12-16 11:43 热爱技术的小牛 阅读(3) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2017-12-16 09:58 热爱技术的小牛 阅读(11) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2017-12-15 10:50 热爱技术的小牛 阅读(8) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2017-12-14 15:09 热爱技术的小牛 阅读(8) 评论(0) 推荐(0) 编辑
只有注册用户登录后才能阅读该文。
posted @ 2017-12-13 10:35 热爱技术的小牛 阅读(4) 评论(0) 推荐(0) 编辑
摘要:1.使用Thread.sleep(),这是最笨的方法,但有时候也能用到而且很实用。 2.隐示等待,隐性等待是指当要查找元素,而这个元素没有马上出现时,告诉WebDriver查询Dom一定时间。默认值是0,但是设置之后,这个时间将在WebDriver对象实例整个生命周期都起作用。 WebDriver  阅读全文
posted @ 2017-12-12 22:01 热爱技术的小牛 阅读(1083) 评论(0) 推荐(0) 编辑
摘要:前言: 在工作当中我们往往遇到很多文件的操作,我们也习惯写一些自己定义的工具类来简化文件操作,其实apache的commons的FileUtils类就是这样一个工具类,使用它能大大的简化我们对文件的操作。 准备工作: 1.下载jar 地址:http://commons.apache.org/prop 阅读全文
posted @ 2017-12-12 21:27 热爱技术的小牛 阅读(21860) 评论(0) 推荐(1) 编辑
摘要:package my_automation; import java.awt.Dimension; import java.sql.Time; import java.util.HashMap; import org.openqa.selenium.Point; import org.openqa.selenium.WebDriver; import org.openqa.selenium.... 阅读全文
posted @ 2017-12-12 16:26 热爱技术的小牛 阅读(3200) 评论(0) 推荐(0) 编辑
摘要:最大化 方法一 //指明ChromeDriver路径 System.setProperty(Src_url_string.Chrome_Driver, Src_url_string.Driver_address); //加载用户配置文件 ChromeOptions options=new ChromeOptions(); //启动就最大化 options.addArguments("--star... 阅读全文
posted @ 2017-12-12 16:10 热爱技术的小牛 阅读(1414) 评论(0) 推荐(0) 编辑
摘要:package my_automation; import java.awt.Dimension; import org.openqa.selenium.Capabilities; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.WebDriver; import org.openqa.sel... 阅读全文
posted @ 2017-12-12 14:53 热爱技术的小牛 阅读(2349) 评论(0) 推荐(0) 编辑
摘要:Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VISTA Build info: version: '3.8.1', revision: '6e95a6684b', time 阅读全文
posted @ 2017-12-12 11:17 热爱技术的小牛 阅读(1724) 评论(1) 推荐(1) 编辑

热爱技术的小牛
点击右上角即可分享
微信分享提示