Skip to content

Commit

Permalink
Create download_do_log
Browse files Browse the repository at this point in the history
  • Loading branch information
venomroger authored Feb 1, 2022
1 parent 2d15685 commit a0977fa
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions download_do_log
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
package tests;

import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

import static org.junit.Assert.assertEquals;

;

//Abrir o Navegador Chrome, Acessar o Menu de Contexto>>Administraçao>>Download do Log
public class SkomTest2 {
@Test
public void FazerLoginSKOM() throws InterruptedException {
System.setProperty("webdriver.chrome.driver","C:\\Users\\roger.drumond\\Downloads\\API_Rest_Aula_Youtube\\Drivers\\chromedriver.exe");
WebDriver navegador = new ChromeDriver();

navegador.manage().window().maximize();

//Automaçao de Teste Base Teste SKOM
navegador.get("http://sdeteste.nuvemdatacom.com.br:9515/mge/");


//Login com Usuario
navegador.findElement(By.id("login")).sendKeys("SUP");
navegador.findElement(By.id("password")).sendKeys("");


//Botao 'Entrar'
navegador.findElement(By.xpath("//*[contains(text(), 'Entrar')]")).click();

Thread.sleep(20000);

//Clicar no Menu de Contexto
navegador.findElement(By.xpath("//div[@class='Taskbar-icon icon-user-photo']//img[@class='gwt-Image']")).click();

//Clicar na opção Administraçao do menu de Contexto
navegador.findElement(By.xpath("//span[normalize-space()='Administração']")).click();

Thread.sleep(20000);

//Encontrar o IFrame
navegador.switchTo().frame(navegador.findElement(By.xpath("//iframe[@class='gwt-Frame']")));

//Clicar no botao 'Download do Log'
navegador.findElement(By.xpath("//span[normalize-space()='Download do Log']")).click();


assertEquals(1,1);


}


}

0 comments on commit a0977fa

Please sign in to comment.