Skip to main content

Timeout Capabilities

NameDescriptionUnitsDefault Value
newSessionWaitTimeoutTimeout for new Session creation



How long should we wait before failing the driver initialization
Seconds10 Minutes
newCommandTimeoutThe timeout of a command, before the server, closes the session (seconds)Seconds30 Seconds
endSessionWaitTimeoutThe timeout of ending appium session (driver.quit())



Reports are uploaded to reporter during ending appium session.
Seconds5 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'
},