Customized capabilitie does not work

Hi,

I am defining the capability noReset to true, but when running the test it backs to false.
Logs:
2019-05-02 12:42:18.987 INFO c.k.k.c.m.k.i.MobileDriverFactory - User set preference: [‘noReset’, ‘true’]

[HTTP] → POST /wd/hub/session {“desiredCapabilities”:{“noReset”:false,

Can someone help me?

Hi @natalia.barbosa,

Are you trying to prevent the application from being reinstalled when the test starts? If so, you can set the second parameter to startApplication to false and that should have the same effect:

MobileBuiltInKeywords.startApplication(appFile, false)

Hope this helps,

Chris

Thanks. It works.

1 Like