-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d15685
commit a0977fa
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
|
||
} | ||
|
||
|
||
} |