Problem with run all tetst in case - cant find element

My app after installed need to activate. Next time app is active and after run app I have to use pin to login to app.
So app activate is only one time, after installed app.
I would in ma tests:

  • install app
  • activate app only one time
  • next tests should login by pin

In BaseTest in setUp I create new driver with caps, and app start again:

        driver = new DriverFactory().Create(config.PlatformName, config.IsRemote);

So when ActivateTests check all elements and activate app, every next test will start when app is activate. In other test I will use pin to login to app.

You know… activation is only one time, normal state is when app is activate and user use pin to login to app.