public void Cleanup() { if (_driver.IsLocked()) { _driver.Unlock(); } _driver?.Quit(); if (!Env.ServerIsRemote()) { AppiumServers.StopLocalService(); } }
public void Cleanup() { if (driver.IsLocked()) { driver.Unlock(); } if (driver != null) { driver.Quit(); } if (!Env.isSauce()) { AppiumServers.StopLocalService(); } }