Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tabs #1848

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Tabs #1848

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/org/labkey/test/pages/assay/ChooseAssayTypePage.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected class ElementCache extends LabKeyPage.ElementCache
// selectButton's text changes depending upon which assay is selected- it can be 'Choose Standard Assay' or 'Choose x Assay'
public final WebElement selectButton = Locator.tagWithClass("button", "pull-right").findWhenNeeded(getDriver());

public final WebElement specialtyPanel = Locator.tagWithId("div", "assay-picker-tabs-pane-specialty").findWhenNeeded(this);
public final WebElement specialtyPanel = Locator.byClass("tab-pane").index(1).findWhenNeeded(this);

public final WebElement stdAssayTab = stdAssayTabLocator().findWhenNeeded(this);
public final WebElement specialtyAssayTab = specialtyAssayTabLocator().findWhenNeeded(this);
Expand All @@ -122,19 +122,19 @@ protected Locator.XPathLocator buttonPanelLocator()
}
public Locator.XPathLocator stdAssayTabLocator()
{
return Locator.id("assay-picker-tabs-tab-standard");
return Locator.tagWithText("a", "Standard Assay");
}
public Locator.XPathLocator stdAssayPaneLocator()
{
return Locator.id("assay-picker-tabs-pane-standard");
return Locator.byClass("tab-pane").index(0);
}
public Locator.XPathLocator specialtyAssayTabLocator()
{
return Locator.id("assay-picker-tabs-tab-specialty");
return Locator.tagWithText("a", "Specialty Assays");
}
public Locator.XPathLocator specialtyAssayPaneLocator()
{
return Locator.id("assay-picker-tabs-pane-specialty");
return Locator.byClass("tab-pane").index(1);
}
}
}