Skip to content

Instantly share code, notes, and snippets.

@andreidbr
Created March 15, 2018 19:07
Show Gist options
  • Save andreidbr/2394061c9bc1fcc285b6155566a9ed5c to your computer and use it in GitHub Desktop.
Save andreidbr/2394061c9bc1fcc285b6155566a9ed5c to your computer and use it in GitHub Desktop.
@Test(testName = "03 CSS Variable Functionality Test", description = "Check that the 03 CSS Variable page functions correctly", groups = {"03CSS"})
public void verifyCSSTest() {
driver.findElement(By.xpath("/html/body/div[2]/div[3]")).click();
String initialStyle = driver.findElement(By.xpath("/html")).getAttribute("style");
WebElement slider = driver.findElement(By.xpath("/html/body/div/p[1]/input[2]"));
slider.click();
slider.sendKeys(Keys.ARROW_RIGHT);
String secondStyle = driver.findElement(By.xpath("/html")).getAttribute("style");
Assert.assertNotEquals(initialStyle, secondStyle);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment