private static class Locators { static final Locator showOnDashField = Locator.css(".labkey-field-editor input.x4-form-checkbox"); static final Locator saveButton = Locator.linkWithText("Save"); static final Locator saveAndCloseButton = Locator.linkWithText("Save And Close"); static final Locator disabledSaveAndCloseButton = Locator.css("a.x4-disabled") .withText("SAVE AND CLOSE"); // why do we need to have the all caps text here? static final Locator cancelButton = Locator.linkWithText("Cancel"); static final Locator disabledWorkbenchButton = Locator.css("a.x4-disabled").withText("WORKBENCH"); static final Locator manageTitle = Locator.css(".labkey-wp-title-text").containing("Manage"); static final Locator updateTitle = Locator.css(".labkey-nav-page-header").containing("Update"); }
protected class Elements { Locator.CssLocator accession = Locator.css(".study-accession"); Locator.CssLocator title = Locator.css(".study-title"); Locator.CssLocator PI = Locator.css(".study-pi"); Locator.CssLocator organization = Locator.css(".study-organization"); Locator.CssLocator paper = Locator.css(".study-papers > p"); Locator immportLink = Locator.linkWithText("ImmPort"); }
private class Elements { Locator journal = Locator.css(".pub-journal"); Locator year = Locator.css(".pub-year"); Locator title = Locator.css(".pub-title"); Locator pubMedLink = Locator.linkWithText("PubMed"); }