This commit is contained in:
Lukáš Kaňka 2023-08-21 22:05:32 +02:00
parent cee261ff26
commit 93285caf32
2 changed files with 21 additions and 0 deletions

View File

@ -5,12 +5,18 @@ import com.codeborne.selenide.SelenideElement;
import org.openqa.selenium.By;
import static com.codeborne.selenide.Selenide.*;
import static org.testng.AssertJUnit.assertEquals;
public class HomePage {
public HomePage open() {
Selenide.open("https://lukan.cz");
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 getDeclineClick() {return $(By.className("eu-cookies-bar-decline"));}

View 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();
}
}