Timeout Capabilities
Name | Description | Units | Default Value |
---|---|---|---|
newSessionWaitTimeout | Timeout for new Session creation How long should we wait before failing the driver initialization | Seconds | 10 Minutes |
newCommandTimeout | The timeout of a command, before the server, closes the session (seconds) | Seconds | 30 Seconds |
endSessionWaitTimeout | The timeout of ending appium session (driver.quit()) Reports are uploaded to reporter during ending appium session. | Seconds | 5 Minutes |
Examples
Java
dc.setCapability("newSessionWaitTimeout", 300);
dc.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 15);
Python
self.dc["newSessionWaitTimeout"] = 300
self.dc["newCommandTimeout"] = 15
C Sharp
dc.SetCapability("newSessionWaitTimeout", 300);
dc.SetCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 15);
Ruby
desired_caps = {
caps: {
newSessionWaitTimeout: 300,
newCommandTimeout: 15,
browserName: 'safari'
},