org.sitoolkit.wt.domain.operation.selenium.VerifyAttributeOperation Maven / Gradle / Ivy
package org.sitoolkit.wt.domain.operation.selenium;
import org.apache.commons.lang3.StringUtils;
import org.openqa.selenium.WebElement;
import org.sitoolkit.wt.domain.testscript.TestStep;
import org.springframework.stereotype.Component;
@Component
public class VerifyAttributeOperation extends VerifyOperation {
@Override
protected String getActual(WebElement element, TestStep testStep) {
return StringUtils.defaultString(
element.getAttribute(testStep.getLocator().getAttributeName()), "null");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy