// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/newitem/NewTodoForm.java
// public class NewTodoForm {
//     public static Target NEW_TODO_FIELD = Target.the("New Todo Field").locatedBy("#new-todo");
// }


import net.serenitybdd.demos.todos.pages.todolist.newitem.NewTodoForm;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
import net.serenitybdd.screenplay.questions.Attribute;
package net.serenitybdd.demos.todos.questions;


@Subject("the ToDo placeholder text")
public class PlaceholderText implements Question<String> {

    @Override
    public String answeredBy(Actor actor) {
// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/pages/todolist/newitem/NewTodoForm.java
// public class NewTodoForm {
//     public static Target NEW_TODO_FIELD = Target.the("New Todo Field").locatedBy("#new-todo");
// }


// Path: src/samples/journey-pattern-sample/src/main/java/net/serenitybdd/demos/todos/questions/PlaceholderText.java
import net.serenitybdd.demos.todos.pages.todolist.newitem.NewTodoForm;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.Question;
import net.serenitybdd.screenplay.annotations.Subject;
import net.serenitybdd.screenplay.questions.Attribute;

package net.serenitybdd.demos.todos.questions;


@Subject("the ToDo placeholder text")
public class PlaceholderText implements Question<String> {

    @Override
    public String answeredBy(Actor actor) {
        return Attribute.of(NewTodoForm.NEW_TODO_FIELD).named("placeholder").viewedBy(actor).asString();