info.novatec.testit.webtester.pagefragments.identification.producers.ClassName Maven / Gradle / Ivy
package info.novatec.testit.webtester.pagefragments.identification.producers;
import org.openqa.selenium.By;
import info.novatec.testit.webtester.pagefragments.identification.ByProducer;
/**
* This {@link ByProducer} produces a {@link By} using {@link By#className(String)}.
*
* @see ByProducer
* @since 2.0
*/
public class ClassName implements ByProducer {
@Override
public By createBy(String value) {
return By.className(value);
}
@Override
public String toString() {
return "Class Name";
}
}