Advertisement
Guest User

Untitled

a guest
Nov 14th, 2023
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | Software | 0 0
  1. package com.example.applications.app1.tests;
  2.  
  3. import com.example.applications.BaseTest;
  4. import org.junit.jupiter.api.Assertions;
  5. import org.junit.jupiter.api.Test;
  6.  
  7. public class Application1BaseTest extends BaseTest {
  8.  
  9.     @Override
  10.     protected String getAppUrl() {
  11.         return "https://example.com/";
  12.     }
  13.  
  14.     @Test
  15.     public void checkCamURL() {
  16.         String expectedURL = "https://example.com/";
  17.         page.navigate(expectedURL);
  18.  
  19.         String currentURL = page.url();
  20.         Assertions.assertEquals(expectedURL, currentURL, "URL is not as expected");
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement