Created
March 15, 2018 19:07
-
-
Save andreidbr/2394061c9bc1fcc285b6155566a9ed5c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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