Skip to content

Commit a0a1ade

Browse files
Add cancel capabilities to ImportsPage (#2467)
1 parent 1871c86 commit a0a1ade

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/org/labkey/test/components/ui/pipeline/ImportsPage.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ public QueryGrid getImportsGrid()
6161
return grid;
6262
}
6363

64+
public ImportsPage clickCancel()
65+
{
66+
elementCache().cancelButton.click();
67+
return new ImportsPage(this);
68+
}
69+
6470
@Override
6571
protected ElementCache elementCache()
6672
{
@@ -83,6 +89,8 @@ final WebElement pageHeader()
8389
.findWhenNeeded(this);
8490
}
8591

92+
final WebElement cancelButton = Locator.button("Cancel").findWhenNeeded(this);
93+
8694
final QueryGrid pipelineJobsGrid()
8795
{
8896
return new QueryGrid.QueryGridFinder(getDriver()).find(this);

0 commit comments

Comments
 (0)