Skip to content

Instantly share code, notes, and snippets.

@RiverGlide
Created February 11, 2016 10:54
Show Gist options
  • Save RiverGlide/330c6fd9e76f87f5c114 to your computer and use it in GitHub Desktop.
Save RiverGlide/330c6fd9e76f87f5c114 to your computer and use it in GitHub Desktop.
package net.serenitybdd.demos.todos.user_interface;
import net.serenitybdd.screenplay.targets.Target;
public class ToDoList {
public static Target WHAT_NEEDS_TO_BE_DONE = the(“’What needs to be done?’ field”).locatedBy(“#new-todo”);
public static Target ITEMS = the(“List of todo items”).locatedBy(“.view label”);
public static Target ITEMS_LEFT = the(“Count of items left”).locatedBy(“#todo-count strong”);
public static Target TOGGLE_ALL = the(“Complete all items link”).locatedBy(“#toggle-all”);
public static Target CLEAR_COMPLETED = the(“Clear completed link”).locatedBy(“#clear-completed”);
public static Target FILTER = the(“filter”).locatedBy(“//*[@id=’filters’]//a[.=’{0}’]”);
public static Target SELECTED_FILTER = the(“selected filter”).locatedBy(“#filters li .selected”);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment