-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsrc
More file actions
14 lines (14 loc) · 635 Bytes
/
Copy pathsrc
File metadata and controls
14 lines (14 loc) · 635 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.By;
public class Web_Automation {
public static void main(String[] args) throws InterruptedException {
ChromeDriver driver = new ChromeDriver();
driver.get("https://www.jecjabalpur.ac.in/");
Thread.sleep(1000);
driver.findElement(By.className("close")).click();
driver.findElement(By.id("UserLogin1_txtUserName")).sendKeys("userID");
driver.findElement(By.id("UserLogin1_txtPassword")).sendKeys("userPassword");
Thread.sleep(5000);
driver.findElement(By.id("UserLogin1_btnLogin")).click();
}
}