public void initializeChrome() { //if (driver.getOS() == "Android") //{ driver.GetNative(); Console.Out.WriteLine(driver.Context); try { System.Threading.Thread.Sleep(10000); Accept.Click(); Thanks.Click(); Done.Click(); } catch (Exception ex) { throw ex; } driver.GetPreviousContext(); //} }