Skip to main content

SetDefaultTimeOut

Description​

Use this command to set the default timeout for other commands.

Parameters​

NameTypeDescription
TimeoutIntegerTimeout in milliseconds

Typical Use Case​

This command can be used to postpone a test so it does not fail because of timeout issues. For example, you can use this to make sure there is no failure until the set timeout expires if a Click command is not successful.

Usage​

info

Replace <server> with the appropriate URL.

Example

SetDefautTimeOut

DesiredCapabilities dc = new DesiredCapabilities();
driver = new AndroidDriver(new URL("<server>"), dc);
seetest = new SeeTestClient(driver);
dc.setCapability(MobileCapabilityType.UDID, "<deviceid>");

...
...

//Default Time out set 10 seconds, no error till 10 seconds even if click command is not successful till 10 seconds.
seetest.setDefaultTimeout(10000);
seetest.click("NATIVE", "//*[@text=EriBank]", 0, 2);