package com.jiyun;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.interactions.TouchScreen;
import org.testng.Assert;
import org.testng.Reporter;
import org.testng.annotations.Test;
import java.io.File;
import java.io.IOException;
import java.util.*;
import java.util.concurrent.TimeUnit;
/**
* @author syx
* @create 2022-03-27 17:44
*/
public class TestDome3 {
public static FirefoxDriver driver;
@Test(enabled = true,description = "cesi1")
public static void openFirefox() throws IOException {
try {
System.setProperty("webdriver.firefox.bin","E:\\huohu\\firefox.exe");
driver = new FirefoxDriver();
driver.manage().timeouts().implicitlyWai
selenium的全部代码
最新推荐文章于 2023-10-16 16:56:16 发布
本文深入探讨了如何使用Java编程语言结合Chrome浏览器的Selenium库进行自动化测试。通过实例代码,展示了从安装配置到编写测试脚本的全过程,包括元素定位、页面操作、断言验证等关键步骤。

最低0.47元/天 解锁文章
16万+

被折叠的 条评论
为什么被折叠?



