-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment136_.java
More file actions
44 lines (26 loc) · 1.15 KB
/
Assignment136_.java
File metadata and controls
44 lines (26 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package BasicsSelenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
//WAP to automate https://grotechminds.com/registeration-form/ ?
public class Assignment136_ {
public static void main(String[] args) {
ChromeDriver driver = new ChromeDriver();
driver.get("https://grotechminds.com/registeration-form/");
driver.manage().window().maximize();
WebElement FName = driver.findElement(By.xpath("(//input)[2]"));
FName.sendKeys("Abhilash");
WebElement LName = driver.findElement(By.xpath("(//input)[3]"));
LName.sendKeys("Pasikanti");
WebElement EName = driver.findElement(By.xpath("(//input)[4]"));
EName.sendKeys("newuser@gmail.com");
WebElement Mnumnber = driver.findElement(By.xpath("(//input)[5]"));
Mnumnber.sendKeys("0987654321");
WebElement Anumnber = driver.findElement(By.xpath("(//input)[6]"));
Anumnber.sendKeys("0987654321");
WebElement Pnumnber = driver.findElement(By.xpath("(//input)[7]"));
Pnumnber.sendKeys("09AZXIO45");
WebElement BClick = driver.findElement(By.xpath("(//input)[8]"));
BClick.click();
}
}