Hi Guys!
Please take a look at my code, i'm trying to verify that my current webpage will be redirected to external site, in my case Google Play(open Google Play in the same tab). I guess i'm doing it wrong way cuz it pass with FireFox but failing with Chrome, here is my code...
String currentURL1 = driver.getCurrentUrl();
profilePage.clickOnGooglePlayLink();
String currentURL2 = driver.getCurrentUrl();
Thread.sleep(3000);
Assert.assertNotEquals(currentURL1, currentURL2, "Failed Redirected to Google Play");
log.info("Redirected to Google Play!");
I'm trying to assert it as NotEquals, is it any other solutin for this case? Thanks for your time! My code
driver.gettitle()