forked from CourseRepository/SeleniumWebdriverWithJava
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestTimeUnit.java
More file actions
33 lines (24 loc) · 875 Bytes
/
TestTimeUnit.java
File metadata and controls
33 lines (24 loc) · 875 Bytes
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
package testcase;
import helper.StartWebDriver;
import java.util.concurrent.TimeUnit;
import org.testng.annotations.Test;
/**
* @author - rahul.rathore
* @date - 16-Nov-2014
* @project - Webdriver
* @package - testcase
* @file name - TestTimeUnit.java
*/
public class TestTimeUnit extends StartWebDriver{
@Test
public void testTime() {
//LinkHelper.clickLink("File a Bug");
//driver.manage().timeouts().implicitlyWait(6, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(1, TimeUnit.MILLISECONDS);
driver.get("http://www.seventhsonmovie.com/");
//1. for every 250 mili sceonds webdriver will check whether the element is present or not
//2. Maximun it will wait for 20 sec before throwing no such element exception
//ButtonHelper.clickButton("log_in");
//driver.manage().timeouts().implicitlyWait(0, TimeUnit.SECONDS);
}
}