All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.questions.targets.TargetCSSValues Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.serenitybdd.screenplay.questions.targets;

import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
import net.serenitybdd.screenplay.questions.CSSValue;
import net.serenitybdd.screenplay.targets.Target;

import java.util.Collection;

@Subject("#target")
public class TargetCSSValues implements Question> {

    private final Target target;
    private final String name;

    TargetCSSValues(Target target, String name) {
        this.target = target;
        this.name = name;
    }

    @Override
    public Collection answeredBy(Actor actor) {
        return CSSValue.ofEach(target).named(name).answeredBy(actor);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy