-
Notifications
You must be signed in to change notification settings - Fork 0
/
Face.java
46 lines (40 loc) · 1.23 KB
/
Face.java
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
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.Sleeper;
public class Face {
FirefoxDriver driver;
public void open()
{
driver=new FirefoxDriver();
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
driver.manage().window().maximize();
driver.get("http://www.skilledpool.com/jobseeker/registration");
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
}
public void search()
{
driver.findElement(By.id("firstname")).sendKeys("Abhishek");
//driver.findElement(By.id("next")).click();
//for(int i=0;i<100;i++){
driver.findElement(By.id("lastname")).sendKeys("Patangi");
driver.findElement(By.id("email")).sendKeys("[email protected]");
//driver.findElement(By.id("signIn")).click();
//driver.findElement(By.cssSelector("span.gb_Ka.gbii")).click();
//driver.findElement(By.id("gb_71")).click();
//}
try {
Thread.sleep(2000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public static void main(String args[])
{
Face obj=new Face();
obj.open();
obj.search();
}
}