@Test public static void RegistrationSuccessTest () { WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10)); String url = "https://bbb.testpro.io/"; driver.get(url); Assert.assertEquals(driver.getCurrentUrl(), url); driver.quit(); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter