// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/ClearCompleted.java
// public class ClearCompleted extends PageObject {
//     public static final Target BUTTON = Target.the("Clear completed button").locatedBy("#clear-completed");
// }


import net.serenitybdd.demos.todos.pages.todolist.ClearCompleted;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.actions.Click;
import net.thucydides.core.annotations.Step;
package net.serenitybdd.demos.todos.tasks;


public class ClearCompletedItems implements Performable {

    @Step("{0} clears all the completed items")
    public <T extends Actor> void performAs(T actor) {
// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/ClearCompleted.java
// public class ClearCompleted extends PageObject {
//     public static final Target BUTTON = Target.the("Clear completed button").locatedBy("#clear-completed");
// }


// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/tasks/ClearCompletedItems.java
import net.serenitybdd.demos.todos.pages.todolist.ClearCompleted;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Performable;
import net.serenitybdd.screenplay.actions.Click;
import net.thucydides.core.annotations.Step;

package net.serenitybdd.demos.todos.tasks;


public class ClearCompletedItems implements Performable {

    @Step("{0} clears all the completed items")
    public <T extends Actor> void performAs(T actor) {
        actor.attemptsTo(Click.on(ClearCompleted.BUTTON));