What is newCommandTimeout Capabilities?
How long (in seconds) Appium will wait for a new command from the client before assuming the client quit and ending the session. Setting to 0 will disable the new command timeout, effectively letting automation sessions continue infinitely without any new commands.
Eg:-capabilities.setCapability("newCommandTimeout", 120);
Default value:60