I am trying to run automated tests on android in circleCI. Looking at the logs and screenshots, looks like the app hasn't completely loaded by then the script starts executing. Its looking for login screen while its still in the splash screen. I added newCommandTimeout: 1000 , implicitlyWait: 300 to desired capabilities. But looking at the log it is completely ignoring the wait.
Looking for ways to add implicit wait...
appium: [HTTP] <-- GET /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a 200 13 ms - 1155
appium: [HTTP]
appium: [HTTP] --> POST /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a/timeouts
appium: [HTTP] {"implicit":0}
appium: [debug] [W3C (6649333d)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,0,"6649333d-c650-45c7-b4d0-59b906e4627a"]
appium: [debug] [BaseDriver] W3C timeout argument: {"implicit":0}}
appium: [debug] [BaseDriver] Set implicit wait to 0ms
appium: [debug] [W3C (6649333d)] Responding to client with driver.timeouts() result: null
appium: [HTTP] <-- POST /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a/timeouts 200 6 ms - 14
[HTTP]
`
I added newCommandTimeout: 1000 , implicitlyWait: 300 to desired capabilities. But looking at the log it is completely ignoring the wait.
Looking for ways to add implicit wait...
appium: [HTTP] <-- GET /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a 200 13 ms - 1155
appium: [HTTP]
appium: [HTTP] --> POST /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a/timeouts
appium: [HTTP] {"implicit":0}
appium: [debug] [W3C (6649333d)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,0,"6649333d-c650-45c7-b4d0-59b906e4627a"]
appium: [debug] [BaseDriver] W3C timeout argument: {"implicit":0}}
appium: [debug] [BaseDriver] Set implicit wait to 0ms
appium: [debug] [W3C (6649333d)] Responding to client with driver.timeouts() result: null
appium: [HTTP] <-- POST /wd/hub/session/6649333d-c650-45c7-b4d0-59b906e4627a/timeouts 200 6 ms - 14
[HTTP]