public void Web_Home_Validar_Icono_Carro_Compra() { ElementoWebHomeBT paginaBT = new ElementoWebHomeBT(); IJavaScriptExecutor js = PropiedadColeccionDriver.driver as IJavaScriptExecutor; APILauncher launcher = new APILauncher(true); Screen screen = new Screen(); Pattern patter_buttoncath = new Pattern("C:/Users/amoreno/Desktop/screen/buttoncath.PNG"); string lugar = "Casa"; string direccion = "Casa #213213 asdasd"; string region = "(XV) Región de Arica y Parinacota"; string comuna = "Arica"; System.Threading.Thread.Sleep(6000); System.Threading.Thread.Sleep(3000); js.ExecuteScript("window.scrollBy(0,650);"); System.Threading.Thread.Sleep(3000); paginaBT.IngresarBotónAgregarCarroProducto(); System.Threading.Thread.Sleep(3000); js.ExecuteScript("window.scrollBy(0,650);"); System.Threading.Thread.Sleep(3000); paginaBT.completarDirección(lugar, direccion, region, comuna); System.Threading.Thread.Sleep(3000); try { launcher.Start(); screen.Click(patter_buttoncath); System.Threading.Thread.Sleep(3000); paginaBT.IngresarBtnContinuar(); System.Threading.Thread.Sleep(3000); launcher.Stop(); } catch (Exception e) { Console.WriteLine("{0} Exception caught.", e); } PropiedadColeccionDriver.driver.Quit(); }