1616package org .labkey .test .pages .assay ;
1717
1818import org .labkey .test .Locator ;
19+ import org .labkey .test .WebDriverWrapper ;
1920import org .labkey .test .components .PlateGrid ;
2021import org .labkey .test .pages .LabKeyPage ;
2122import org .labkey .test .selenium .LazyWebElement ;
@@ -35,6 +36,14 @@ public RunQCPage(WebDriver driver){
3536 _driver = driver ;
3637 }
3738
39+ @ Override
40+ protected void waitForPage ()
41+ {
42+ Locator waitMsg = Locator .tagWithClass ("div" , "x4-mask-msg-text" ).withText ("Requesting QC information" );
43+ WebDriverWrapper .waitFor (()-> !waitMsg .isDisplayed (getDriver ()),
44+ "Took too long to display the page" , WAIT_FOR_JAVASCRIPT );
45+ }
46+
3847 public WebElement getSpecimenSection (String sectionTitle )
3948 {
4049 String xpath = elementCache ().DILUTION_SUMMARY_XPATH + "//tbody//tr//td[text()='" + sectionTitle + "']" ;
@@ -74,7 +83,7 @@ public void selectPlateItemsToIgnore(String plateTitle, List<String> valuesToIgn
7483 String xpath = elementCache ().PLATE_CONTROLS_VALUES_XPATH .replace ("$" , plateTitle );
7584 for (String value : valuesToIgnore )
7685 {
77- click (Locator .xpath (xpath + "//label[text()='" + value + "']" ));
86+ waitAndClick (Locator .xpath (xpath + "//label[text()='" + value + "']" ));
7887 }
7988 }
8089
@@ -83,7 +92,7 @@ public void selectDilutionItemsToIgnore(String sectionTitle, List<String> values
8392 String xpath = elementCache ().DILUTION_SUMMARY_VALUES_XPATH .replace ("$" , sectionTitle );
8493 for (String value : valuesToIgnore )
8594 {
86- click (Locator .xpath (xpath + "//label[text()='" + value + "']" ));
95+ waitAndClick (Locator .xpath (xpath + "//label[text()='" + value + "']" ));
8796 }
8897 }
8998
0 commit comments