title: How to use assertion in main method
body: <p>I am verifying my login assertions through selenium webdriver and i have two classes in two different packages one is my page class and second one is my Test class. My code is working fine if i am using in page class but when i'm using assertionequals in my Testclass method it fails.</p>
  
  <pre><code>        //To verify login of uat seller
          WebElement useremail1 = driver.findElement(By.xpath("//input[@placeholder='Email']"));
          WebElement password = driver.findElement(By.xpath("//input[@placeholder='Password']"));
          WebElement Sign_in = driver.findElement(By.xpath("//a[@class='btn-signin']"));
          useremail1.sendKeys("alicatalogtest@mailinator.com");
          password.sendKeys("XXX");
          Sign_in.click();
          String actualurl=driver.getCurrentUrl();
          String expectedurl="https://uat-seller.yayvo.com/products/dashboard";
          Assert.assertEquals(actualurl,expectedurl);
  </code></pre>