code: public void isCurrentlyOnPage(String exectedPage) {
          if (exectedPage.endsWith("/")) {
              exectedPage = exectedPage.substring(0, exectedPage.length() - 1);
          }
  
          try {
  			Thread.sleep(2000);
  		} catch (InterruptedException e) {
  			// TODO Auto-generated catch block
  			e.printStackTrace();
  		}
          
          String currentPage = getWebDriver().getCurrentUrl();
          if (currentPage.contains("?") && !exectedPage.contains("?")) {
              currentPage = currentPage.substring(0, currentPage.indexOf("?"));
          }
          if (currentPage.endsWith("/")) {
              currentPage = currentPage.substring(0, currentPage.length() - 1);
          }
  
          assertEquals(exectedPage, currentPage);
      }
docs: Check if the current page viewed by the {@link WebDriver} matches that of the passed url. If the expectedPage holds url parameters
  they will be used to match on. If none are provided but the current page does have them, the parameters on the current page will be ignored in the match
  @param exectedPage