series - elemn

This commit is contained in:
Lukáš Kaňka
2023-08-16 16:00:32 +02:00
parent a8f58c8ec4
commit 233f276f6f
78 changed files with 1632 additions and 8 deletions

View File

@@ -0,0 +1,29 @@
package specs;
import com.codeborne.selenide.WebDriverRunner;
import org.openqa.selenium.WebDriver;
import org.testng.annotations.Test;
import static com.codeborne.selenide.Selenide.open;
import static com.codeborne.selenide.Selenide.title;
import static org.testng.AssertJUnit.assertEquals;
public class HomeTest {
@Test
public void testPageUrlAndTitle() {
open("https://practice.sdetunicorns.com/");
// test očekávané url, String url do této proměné jsme vložily url
String url = WebDriverRunner.url();
assertEquals(url, "https://practice.sdetunicorns.com/");
// test titulu stránky
String title = title();
assertEquals(title, "Practice E-Commerce Site SDET Unicorns Helping you succeed in Software Quality.");
}
@Test
public void testInteractingWithElements() {
}
}