java - Selenium WebDriver getCssValue() is not returning anything for background-repeat-x -


i'm attempting verify background image present , property set repeat x.

getting image with

driver.findelement(by.xpath("//body").getcssvalue("background-image"); 

returns can parse i'm there.

however, when try repeat-x property, no output:

driver.findelement(by.xpath("//body").getcssvalue("background-repeat-x"); 

the css, seen in element viewer in chrome, looks 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 help, gratefully received. thanks.

can test value of 'background-repeat' property 'repeat no-repeat' ?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -