@Test public void homepageNavigation() { ChromeOptions options = new ChromeOptions(); options.addArguments("--remote-allow-origins=*"); WebDriver driver = new ChromeDriver(options); driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10)); String expectedUrl = "https://qa.koel.app/"; driver.get(expectedUrl); Assert.assertEquals(driver.getCurrentUrl(), expectedUrl); 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