My goal is to check if a background image exists and if the `repeat-x` property is set.
I can successfully retrieve the background image using the following code:
driver.findElement(By.xpath("//body").getCssValue("background-image");
This code returns a result that I can parse, so everything is working fine in that regard.
However, when I attempt to retrieve the `repeat-x` property, I do not get any output:
driver.findElement(By.xpath("//body").getCssValue("background-repeat-x");
The CSS, as displayed in the Chrome element viewer, appears like this:
background: #213A6A url('/images/background.png') repeat-x top;
background-image: url(http://mysite/images/background.png);
background-position-x: 50%;
background-position-y: 0%;
background-size: initial;
background-repeat-x: repeat;
background-repeat-y: no-repeat;
background-attachment: initial;
background-origin: initial;
background-clip: initial;
background-color: rgb(33, 58, 106);
Any assistance would be greatly appreciated. Thank you.