![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ui自动化
点点点测试员
这个作者很懒,什么都没留下…
展开
-
JAVA+selenium+testng 断言封装及调用
package POM;import org.apache.commons.io.FileUtils;import org.openqa.selenium.*;import org.openqa.selenium.chrome.ChromeDriver;import org.openqa.selenium.chrome.ChromeOptions;import org.openqa.selenium.support.ui.Select;import org.testng.Assert;im原创 2021-06-08 17:35:48 · 352 阅读 · 0 评论 -
testng配置报告输出
下载testng第三方依赖包<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd"><suite name="All Test Suite"> <test name="QuickBuildOrder" preserve-order="true" > <classes>原创 2021-05-20 12:02:21 · 256 阅读 · 0 评论 -
selenium封装登录进行调用
新建一个公共类,如:Foreground_public,把登录信息封装好package Public;import org.apache.commons.io.FileUtils;import org.openqa.selenium.*;import org.openqa.selenium.chrome.ChromeDriver;import org.openqa.selenium.chrome.ChromeOptions;import org.openqa.selenium.suppo.原创 2021-05-20 11:52:56 · 651 阅读 · 0 评论 -
Java+selenium常用封装方法
1.下拉框的选择方法WebElement element = driver.findElement(By.cssSelector());Element.click();//这是点击下拉框的定位方法Thread.sleep(2000);//点击下拉框后等待下方元素加载然后再找到需要选择的选项WebElement element = driver.findElement(By.xpath());Element.click;2.日历控件处理方法String js = "d.原创 2021-05-20 11:42:24 · 914 阅读 · 0 评论