File tree Expand file tree Collapse file tree
src/org/labkey/test/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import org .labkey .test .Locator ;
55import org .labkey .test .components .Component ;
66import org .labkey .test .components .WebDriverComponent ;
7+ import org .labkey .test .util .selenium .ScrollUtils ;
78import org .openqa .selenium .WebDriver ;
89import org .openqa .selenium .WebElement ;
910
@@ -66,7 +67,8 @@ public boolean isSaveButtonEnabled()
6667 */
6768 public Object clickSave ()
6869 {
69- getWrapper ().clickAndWait (elementCache ().saveButton );
70+ // Selenium sometimes doesn't think the save button needs to be scrolled into view but the click does nothing.
71+ getWrapper ().clickAndWait (ScrollUtils .scrollIntoView (elementCache ().saveButton ));
7072 return null ;
7173 }
7274
Original file line number Diff line number Diff line change @@ -122,6 +122,12 @@ public T setNameExpression(String nameExpression)
122122 {
123123 expandPropertiesPanel ();
124124 elementCache ().nameExpressionInput .set (nameExpression );
125+ if (nameExpression .contains ("${genId}" ))
126+ {
127+ // Wait for genId banner to avoid interfering with subsequent steps by shifting the page layout
128+ // Non-fatal to let specific tests check for this
129+ var _ = WebDriverWrapper .waitFor (this ::isGenIdVisible , 1_000 );
130+ }
125131 return getThis ();
126132 }
127133
You can’t perform that action at this time.
0 commit comments