code: @Then("^we are in page '(.+?)'$")
      public void checkURL(String url) throws Exception {
  
          if (commonspec.getWebHost() == null) {
              throw new Exception("Web host has not been set");
          }
  
          if (commonspec.getWebPort() == null) {
              throw new Exception("Web port has not been set");
          }
  
          String webURL = commonspec.getWebHost() + commonspec.getWebPort();
  
          assertThat(commonspec.getDriver().getCurrentUrl()).as("We are not in the expected url: " + webURL.toLowerCase() + url)
                  .endsWith(webURL.toLowerCase() + url);
      }
docs: Checks that we are in the URL passed
  
  @param url
  @throws Exception