28 lines
682 B
Java
28 lines
682 B
Java
package ru.oriflame.pages;
|
|
|
|
import org.openqa.selenium.By;
|
|
import org.openqa.selenium.WebDriver;
|
|
import org.openqa.selenium.WebElement;
|
|
import org.openqa.selenium.support.FindBy;
|
|
|
|
public class MultiMedia {
|
|
|
|
public WebDriver driver;
|
|
|
|
public MultiMedia(WebDriver driver) {
|
|
this.driver = driver;
|
|
}
|
|
|
|
@FindBy(xpath = "//*[@id=\"block-block-5\"]/p/a")
|
|
private WebElement playVideo;
|
|
|
|
public void playVideoElement() {
|
|
playVideo.click();
|
|
}
|
|
|
|
public boolean assertVideoPlay() {
|
|
return driver.findElement(By.cssSelector("body > div.mfp-wrap.mfp-close-btn-in.mfp-auto-cursor.mfp-ready > div > div > div > button")).isDisplayed();
|
|
}
|
|
|
|
}
|