SetDefaultTimeOut
Description
Use this command to set the default timeout for other commands.
Parameters
Name | Type | Description |
---|---|---|
Timeout | Integer | Timeout 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.
- Public Continuous Testing Cloud - https://cloud.seetest.io/wd/hub/.
- Dedicated Continuous Testing Cloud environment - Your own domain. For example: https://company.experitest.com/wd/hub/
- On-premises Continuous Testing Cloud environment - Your designated URL. For example: https://company.com/wd/hub
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);