titulek
This commit is contained in:
parent
cee261ff26
commit
93285caf32
@ -5,12 +5,18 @@ import com.codeborne.selenide.SelenideElement;
|
|||||||
import org.openqa.selenium.By;
|
import org.openqa.selenium.By;
|
||||||
|
|
||||||
import static com.codeborne.selenide.Selenide.*;
|
import static com.codeborne.selenide.Selenide.*;
|
||||||
|
import static org.testng.AssertJUnit.assertEquals;
|
||||||
|
|
||||||
public class HomePage {
|
public class HomePage {
|
||||||
public HomePage open() {
|
public HomePage open() {
|
||||||
Selenide.open("https://lukan.cz");
|
Selenide.open("https://lukan.cz");
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
public HomePage titulek() {
|
||||||
|
String title = title();
|
||||||
|
assertEquals(title, "Lukáš bloguje - Blog o všem možném i nemožném");
|
||||||
|
return this;
|
||||||
|
}
|
||||||
public SelenideElement getAcceptClick() {return $(By.className("eu-cookies-bar-tick"));}
|
public SelenideElement getAcceptClick() {return $(By.className("eu-cookies-bar-tick"));}
|
||||||
|
|
||||||
public SelenideElement getDeclineClick() {return $(By.className("eu-cookies-bar-decline"));}
|
public SelenideElement getDeclineClick() {return $(By.className("eu-cookies-bar-decline"));}
|
||||||
|
15
lukanSelenide/src/test/java/cz/lukan/test/titulek.java
Normal file
15
lukanSelenide/src/test/java/cz/lukan/test/titulek.java
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
package cz.lukan.test;
|
||||||
|
|
||||||
|
import cz.lukan.pages.HomePage;
|
||||||
|
import org.testng.annotations.Test;
|
||||||
|
|
||||||
|
public class titulek {
|
||||||
|
HomePage home = new HomePage();
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testTitulsPage() {
|
||||||
|
home
|
||||||
|
.open()
|
||||||
|
.titulek();
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user