Skip to content

Instantly share code, notes, and snippets.

@Heather-R
Created October 12, 2016 17:46
Show Gist options
  • Save Heather-R/e0e4f87fed716b168a4d3b0d641d1dcf to your computer and use it in GitHub Desktop.
Save Heather-R/e0e4f87fed716b168a4d3b0d641d1dcf to your computer and use it in GitHub Desktop.
/**
* Methods to click buttons in the All Projects table.
*/
public void clickTableEditButton(String headerToSearch, String knownLabel, String knownColumnHeader) {
Table allSomeTable = new Table(someTable);
allSomeTable.findOnlyLinkButtonInCell(headerToSearch, knownLabel, knownColumnHeader).click();
}
public void clickTableViewButton(String headerToSearch, String knownLabel, String knownColumnHeader) {
Table allSomeTable = new Table(someTable);
allSomeTable.findIndexedButtonInCell(headerToSearch, knownLabel, knownColumnHeader, 1).click();
}
public void clickTableCopyButton(String headerToSearch, String knownLabel, String knownColumnHeader) {
Table allSomeTable = new Table(someTable);
allSomeTable.findIndexedButtonInCell(headerToSearch, knownLabel, knownColumnHeader, 2).click();
}
public void clickTableDeleteButton(String headerToSearch, String knownLabel, String knownColumnHeader) {
Table allSomeTable = new Table(someTable);
allSomeTable.findIndexedButtonInCell(headerToSearch, knownLabel, knownColumnHeader, 3).click();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment