I am trying to play the video by using JUnit. After playing the video I need to take a screen shot. I am able to close this video window but not able to play/pause this video.
To close the video I have used code
WebDriverWait wait = new WebDriverWait(driver, 20); wait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(xPath))).click();
Please help me.