
selenium
Achilles159
这个作者很懒,什么都没留下…
展开
-
Selenium常用API
1.SendKeyspackage com.my.simple;import java.io.File;import org.openqa.selenium.By;import org.openqa.selenium.Keys;import org.openqa.selenium.WebDriver;import org.openqa.selenium.chrome.ChromeDriver;public class SendKeys { public static v.原创 2020-08-18 21:20:35 · 660 阅读 · 0 评论 -
Selenium Grid简介与案例
selenium grid 是一种执行测试用例时使用的包含不同平台(windows、Linux、Android)的框架,并且这些平台是由一个中心点控制,这个中心点称之为HUB,而那些不同的平台称之为NODEServer A 注册hubjava -jar selenium-server.jar -role hub 其默认监听端口4444,默认IP localhost 如果要修改,只需要加-port 参数和-Hubhosthttp://localhost:4444/grid/console 查看..原创 2020-08-13 23:32:01 · 764 阅读 · 0 评论 -
Selenium实现UI自动化案例
1. 登陆doclever(http://www.doclever.cn/controller/index/index.html(自己注册)2. 进行个人资料设置(头像、年龄、性别、公司、qq、邮箱、手机)3. 退出登陆代码如下:package com.my.finalcase;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io原创 2020-08-11 22:05:12 · 1082 阅读 · 0 评论 -
Selenium原理精讲
Selenium 是用于测试 Web 应用程序用户界面 (UI) 的常用框架。它是一款用于运行端到端功能测试的超强工具。您可以使用多个编程语言编写测试(目前支持的语言有Java,Python,Ruby, C#),并且 Selenium 能够在一个或多个浏览器中执行这些测试。Selenium最常用的版本是Selenium2和Selenium3。大家可以理解为selenium3是selenium2的升级版本,主要更新内容如下:去掉了对selenium rc的支持 全面拥抱java 8。 如果你需要使用se转载 2020-07-20 22:26:03 · 333 阅读 · 0 评论 -
selenium + WebDriver + java启动浏览器报错
问题一:java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded fr原创 2020-07-20 22:08:33 · 5739 阅读 · 0 评论