Skip to content

Instantly share code, notes, and snippets.

@RiverGlide
Created February 11, 2016 10:54
Show Gist options
  • Save RiverGlide/2eb1f3e2dc0a700e99fd to your computer and use it in GitHub Desktop.
Save RiverGlide/2eb1f3e2dc0a700e99fd to your computer and use it in GitHub Desktop.
package net.serenitybdd.demos.todos.user_interface;
import net.serenitybdd.screenplay.targets.Target;
public class TodoListItem {
public static Target COMPLETE_ITEM = the(“Complete item tick box”).locatedBy( “//*[@class=’view’ and contains(.,’{0}’)]//input[@type=’checkbox’]”);
public static Target DELETE_ITEM = the(“Delete item button”).locatedBy( “//*[@class=’view’ and contains(.,’{0}’)]//button[@class=’destroy’]”);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment