Skip to content

Instantly share code, notes, and snippets.

@douglasmartins7
Created March 24, 2017 18:46
Show Gist options
  • Save douglasmartins7/5cd5bb69943844641369c08532cd4a48 to your computer and use it in GitHub Desktop.
Save douglasmartins7/5cd5bb69943844641369c08532cd4a48 to your computer and use it in GitHub Desktop.
if (digitos == juniper) {
WebElement verQuartos = driver.findElement(By.xpath("html/body/div[1]/div[2]/main/div/div/section/aside/div/div/div/div/div/a"));
verQuartos.click();
Thread.sleep(2000);
WebElement continuar = driver.findElement(By.xpath("html/body/div[1]/div[2]/main/div/div/section/div[3]/div[2]/aside/div/div/div/div/a"));
continuar.click();
} else if (digitos == expedia) {
System.out.println("Broker: " + digitos);
driver.navigate().refresh();
} else if (digitos == hotelbeds) {
System.out.println("Broker: " + digitos);
driver.navigate().refresh();
} else if (digitos == omnibees) {
System.out.println("Broker: " + digitos);
driver.navigate().refresh();
} else if (digitos == cvc) {
System.out.println("Broker CVC: " + digitos);
driver.navigate().refresh();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment