com.zebrunner.carina.webdriver.locator.PlatformCondition Maven / Gradle / Ivy
package com.zebrunner.carina.webdriver.locator;
import org.openqa.selenium.support.FindBy;
public class PlatformCondition extends BasePlatformCondition implements FindCondition {
public PlatformCondition(LocatorCreatorContext locatorCreatorContext) {
super(locatorCreatorContext);
}
@Override
public void assertValidAnnotations(FindByPlatform annotation) {
super.assertValidAnnotations(annotation.value());
}
@Override
public boolean isConditionApply(FindByPlatform annotation) {
return super.isConditionApply(annotation.value());
}
@Override
public FindBy getFindBy(FindByPlatform annotation) {
return annotation.findBy();
}
}