-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAssignment160_.java
More file actions
81 lines (45 loc) · 1.9 KB
/
Assignment160_.java
File metadata and controls
81 lines (45 loc) · 1.9 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
package BasicsSelenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.Select;
//WAP to handle fileupload https://grotechminds.com/registration/ ?
public class Assignment160_ {
public static void main(String[] args) {
ChromeDriver driver = new ChromeDriver();
driver.get("https://grotechminds.com/registration/");
driver.manage().window().maximize();
WebElement w1 = driver.findElement(By.id("fname"));
w1.sendKeys("Abhilash");
WebElement w2 = driver.findElement(By.id("lname"));
w2.sendKeys("pasikanti");
WebElement w3 = driver.findElement(By.id("email"));
w3.sendKeys("abhilash.var5@gmail.com");
WebElement w4 = driver.findElement(By.id("password"));
w4.sendKeys("Abhilash");
WebElement w5 = driver.findElement(By.id("male"));
w5.click();
WebElement skills = driver.findElement(By.id("Skills"));
Select s = new Select(skills);
s.selectByVisibleText("Technical Skills");
WebElement technicalskills = driver.findElement(By.id("technicalskills"));
Select s1 = new Select(technicalskills);
s1.selectByVisibleText("Python");
WebElement Country = driver.findElement(By.id("Country"));
Select s2 = new Select(Country);
s2.selectByVisibleText("China");
WebElement w7 = driver.findElement(By.id("Present-Address"));
w7.sendKeys("Hyderabad");
WebElement w8 = driver.findElement(By.id("Permanent-Address"));
w8.sendKeys("Hyderabad");
WebElement w9 = driver.findElement(By.id("Pincode"));
w8.sendKeys("506003");
WebElement w10 = driver.findElement(By.id("Relegion"));
Select s4 = new Select(w10);
s4.selectByVisibleText("Hindu");
WebElement w11 = driver.findElement(By.id("file"));
w11.sendKeys("C:\\Users\\USER\\OneDrive\\Desktop\\Resums");
WebElement w12 = driver.findElement(By.id("relocate"));
w12.click();
}
}