first issue
This commit is contained in:
parent
7be23c782d
commit
4f4d0fbd3b
|
|
@ -1,6 +1,14 @@
|
|||
# ---> Java
|
||||
# Compiled class file
|
||||
*.class
|
||||
# Java
|
||||
target/
|
||||
build/
|
||||
bin/
|
||||
|
||||
.gradle
|
||||
.factorypath
|
||||
.classpath
|
||||
.project
|
||||
.settings/
|
||||
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
|
|
@ -20,7 +28,7 @@
|
|||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
replay_pid*
|
||||
|
||||
# do NOT ignores
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>TestingSelenium</groupId>
|
||||
<artifactId>TestingSeleniumFirst</artifactId>
|
||||
<version>v0.1</version>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.seleniumhq.selenium</groupId>
|
||||
<artifactId>selenium-java</artifactId>
|
||||
<version>4.26.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.bonigarcia</groupId>
|
||||
<artifactId>webdrivermanager</artifactId>
|
||||
<version>5.8.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -0,0 +1,36 @@
|
|||
package mmk.testing;
|
||||
|
||||
import java.time.Duration;
|
||||
|
||||
import org.openqa.selenium.By;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.chrome.ChromeDriver;
|
||||
|
||||
import io.github.bonigarcia.wdm.WebDriverManager;
|
||||
|
||||
public class TestingFirst {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
WebDriverManager.chromedriver().setup();
|
||||
WebDriver driver = new ChromeDriver();
|
||||
driver.manage().window().maximize();
|
||||
driver.manage().deleteAllCookies();
|
||||
driver.manage().timeouts().pageLoadTimeout(Duration.ofSeconds(50));
|
||||
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(40));
|
||||
driver.get("http://fed.gtm.corp/atlastest/");
|
||||
driver.findElement(By.id("__BVID__19")).sendKeys("SRV100001");
|
||||
driver.findElement(By.id("__BVID__21")).sendKeys("From0reva!");
|
||||
driver.findElement(By.tagName("button")).click();
|
||||
driver.findElement(By.tagName("form")).submit();
|
||||
|
||||
/*
|
||||
driver.get("https://www.google.com/");
|
||||
Actions builder = new Actions(driver);
|
||||
builder.moveToElement(driver.findElement(By.id("APjFqb"))).perform();
|
||||
driver.findElement(By.id("APjFqb")).sendKeys("asd");
|
||||
driver.findElement(By.xpath("//input[@name='btnK']")).click();
|
||||
*/
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue