Hello All,
As per the documentation, the `WebDriverWait` API is defined as
public WebDriverWait(WebDriver driver, long timeOutInSeconds)
Even Eclipse IDE shows the same as follows:
org.openqa.selenium.support.ui.WebDriverWait.WebDriverWait(WebDriver driver, long timeOutInSeconds)
A small test on the Java Primitive Data Type is as follows:
public class Min_Max_Primitive_Data_Types
{
public static void main(String[] args)
{
System.out.println("Integer.MIN = " + Integer.MIN_VALUE);
System.out.println("Integer.MAX = " + Integer.MAX_VALUE);
System.out.println("Long.MIN = " + Long.MIN_VALUE);
System.out.println("Long.MAX = " + Long.MAX_VALUE);
}
}
The output reveals:
Long.MIN = -9223372036854775808
Long.MAX = 9223372036854775807
Now configuring :
WebDriverWait wait2 = new WebDriverWait(driver, 9223372036854775807);
Eclipse IDE showing error as :
The literal 9223372036854775807 of type int is out of range
Where am I wrong?
Any suggestion and pointers will be helpful.
Thanks and Regards
Dev