title: Write a Automation code for background images
body: <p>I need to write automation code (selenium) in Java for 
  verify scenario how many background images are displaying and at what interval, it is getting changed.</p>
  
  <p>URL:- <a href="https://www.seniorhousingnet.com/" rel="nofollow noreferrer">https://www.seniorhousingnet.com/</a></p>
  
  <p>@Then ("^Background images should display$")</p>
  
  <pre><code>public void BaackgroundImagesHP(){
  WebElement body = Driver.Gprops.GetWebDriver().findElement(By.id("ImagePlaceHolder"));
  System.out.println("body is "+body);
  String actual = body.getCssValue("background-image");
  System.out.println("Actual is "+actual);
  
  }
  </code></pre>
  
  <p>To find background image, I written a small automation code as you see above,</p>
  
  <p>but if we observe background images are keep changing after a few seconds. I need to write a code for how many background images are displaying and at what interval it is keep changing</p>
  
  <p>can anybody help me?</p>