Hey there.
I’m running an automation on an Android Device, and after appium can’t find some element(not an error, it’s a banner that sometimes it’s not showing) i get a timeout of 1:40min or 84000ms between the error msg and the next command.
I have search a lot of places and tried many differente capabilites but can’t find what’s happening.
Appium version is 1.11.0
Here are the caps:
caps: {
platformName: 'android',
app:'./config/app/app-preproduction-debug.apk',
deviceName: '*',
automationName:'UiAutomator2',
udid:'4200f2160595',
autoGrantPermissions: true,
unicodeKeyboard:true,
resetKeyboard:true ,
systemPort:ENV['SYSTEMPORT'],
newCommandTimeout:20000,
language:'pt',
locale:'PT',
useNewWDA:true,
fullReset:true
},
appium_lib: {
server_url: 'http://0.0.0.0:4462/wd/hub',
wait_timeout: 300,
wait_interval: 100,
newCommandTimeout: 20000
}
Here is a piece of appium log with the time interval:
2019-04-01 14:16:34:576 - [debug] [MJSONWP] Matched JSONWP error code 7 to NoSuchElementError
2019-04-01 14:16:34:577 - [debug] [W3C (116e94ae)] Encountered internal error running command: NoSuchElementError: An element could not be located on the page using the given search parameters.
2019-04-01 14:16:34:577 - [debug] [W3C (116e94ae)] at AndroidUiautomator2Driver.helpers.findElOrEls (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)
**2019-04-01 14:16:34:578 - [HTTP] <-- POST /wd/hub/session/116e94ae-ea88-41f8-9f66-5c0917016fca/element 404 4498 ms - 395
2019-04-01 14:16:34:578 - [HTTP]
2019-04-01 14:18:14:590 - [HTTP] --> POST /wd/hub/session/116e94ae-ea88-41f8-9f66-5c0917016fca/timeouts**
2019-04-01 14:18:14:590 - [HTTP] {“implicit”:5000}
2019-04-01 14:18:14:590 - [debug] [W3C (116e94ae)] Calling AppiumDriver.timeouts() with args: [null,null,null,null,5000,“116e94ae-ea88-41f8-9f66-5c0917016fca”]
2019-04-01 14:18:14:590 - [debug] [BaseDriver] W3C timeout argument: {“implicit”:5000}}
2019-04-01 14:18:14:590 - [debug] [BaseDriver] Set implicit wait to 5000ms
2019-04-01 14:18:14:591 - [debug] [W3C (116e94ae)] Responding to client with driver.timeouts() result: null
2019-04-01 14:18:14:591 - [HTTP] <-- POST /wd/hub/session/116e94ae-ea88-41f8-9f66-5c0917016fca/timeouts 200 1 ms - 14
Thanks in advance!