This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
table { | |
font-family: arial, sans-serif; | |
border-collapse: collapse; | |
width: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Locators for the table elements. | |
*/ | |
public static final By VALUE1COLUMN_HEADER = By.xpath(".//*[@id='sometable']/tbody/tr[1]/td/b"); | |
public static final By VALUE1_TABLEENTRY =By.xpath(".//*[@id='sometable']/tbody/tr[2]/td[1]"); | |
public static final By VALUE1DELETEBUTTON_TABLEENTRY = By.xpath(".//*[@id='sometable']/tbody/tr[2]/td[2]/button"); | |
public static final By VALUE2_TABLEENTRY = By.xpath(".//*[@id='sometable']/tbody/tr[3]/td[1]"); | |
public static final By VALUE2DELETEBUTTON_TABLEENTRY = By.xpath(".//*[@id='sometable']/tbody/tr[3]/td[2]/button"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@FindBy(how = How.ID, using = "sometable") | |
private WebElement someTable; | |
/** | |
* Get column headings for the Studies table. | |
*/ | |
public List<String> getTableColumnHeaders() { | |
Table allSomeTable = new Table(someTable); | |
return allSomeTable.readAllColumnHeaders(); | |
} |