Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*Hello from WebDriver*/
- import org.openqa.selenium.WebDriver;
- import org.openqa.selenium.chrome.ChromeDriver;
- public class HelloWebDriver {
- public static void main(String[] args) throws InterruptedException {
- WebDriver driver = new ChromeDriver();
- driver.get("https://www.w3schools.com/java");
- driver.quit();
- }
- }
- /*pom.xml*/
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>com.epam.automation</groupId>
- <artifactId>hello-webdriver</artifactId>
- <version>1.0-SNAPSHOT</version>
- <properties>
- <maven.compiler.source>17</maven.compiler.source>
- <maven.compiler.target>17</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.seleniumhq.selenium</groupId>
- <artifactId>selenium-java</artifactId>
- <version>4.27.0</version>
- </dependency>
- </dependencies>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement