3131import org .labkey .test .pages .query .ExecuteQueryPage ;
3232import org .labkey .test .params .FieldDefinition ;
3333import org .labkey .test .util .ApiPermissionsHelper ;
34- import org .labkey .test .util .DataRegionTable ;
34+ import org .labkey .test .util .DataRegionTable . DataRegionFinder ;
3535import org .labkey .test .util .LogMethod ;
3636import org .labkey .test .util .PasswordUtil ;
3737import org .labkey .test .util .PortalHelper ;
@@ -145,7 +145,7 @@ public void testUserVisibilityViaLookup()
145145
146146 log ("Verify that emails cannot be seen in list via lookup" );
147147 clickAndWait (Locator .linkWithText (EMAIL_TEST_LIST ));
148- DataRegionTable . findDataRegion ( this ).goToView (HIDDEN_COL_VIEW );
148+ new DataRegionFinder ( getDriver ()). find ( ).goToView (HIDDEN_COL_VIEW );
149149 assertTextPresent (displayName );
150150 // This user does not have permission to see user details, so no link
151151 assertElementNotPresent (Locator .linkWithText (displayName ));
@@ -157,7 +157,7 @@ public void testUserVisibilityViaLookup()
157157
158158 log ("Verify that user table info can be seen with permission" );
159159 clickAndWait (Locator .linkWithText (EMAIL_TEST_LIST ));
160- DataRegionTable . findDataRegion ( this ).goToView (HIDDEN_COL_VIEW );
160+ new DataRegionFinder ( getDriver ()). find ( ).goToView (HIDDEN_COL_VIEW );
161161 assertTextPresent (CHECKED_USER , ADMIN_USER , HIDDEN_STRING );
162162 }
163163
@@ -171,7 +171,7 @@ public void testUserVisibilityViaQuery()
171171 ExecuteQueryPage .beginAt (this , "core" , "Users" );
172172
173173 log ("Verify that emails cannot be seen in query webpart" );
174- DataRegionTable . findDataRegion ( this ).goToView (HIDDEN_COL_VIEW );
174+ new DataRegionFinder ( getDriver ()). find ( ).goToView (HIDDEN_COL_VIEW );
175175 assertElementPresent (Locator .linkWithText (displayName ));
176176 assertTextNotPresent (CHECKED_USER , ADMIN_USER , HIDDEN_STRING );
177177
@@ -180,7 +180,7 @@ public void testUserVisibilityViaQuery()
180180 ExecuteQueryPage .beginAt (this , "core" , "Users" );
181181
182182 log ("Verify that user table info can be seen with permission" );
183- DataRegionTable . findDataRegion ( this ).goToView (HIDDEN_COL_VIEW );
183+ new DataRegionFinder ( getDriver ()). find ( ).goToView (HIDDEN_COL_VIEW );
184184 assertTextPresent (CHECKED_USER , ADMIN_USER , HIDDEN_STRING );
185185 }
186186
@@ -249,10 +249,10 @@ private void createHiddenEmailList()
249249 _listHelper .createList (getProjectName (), EMAIL_TEST_LIST , "Key" , userColumn );
250250 goToManageLists ();
251251 clickAndWait (Locator .linkWithText (EMAIL_TEST_LIST ));
252- DataRegionTable . findDataRegion ( this ).clickInsertNewRow ();
252+ new DataRegionFinder ( getDriver ()). find ( ).clickInsertNewRow ();
253253 selectOptionByText (Locator .name ("quf_user" ), _userHelper .getDisplayNameForEmail (CHECKED_USER ));
254254 clickButton ("Submit" );
255- DataRegionTable . findDataRegion ( this ).clickInsertNewRow ();
255+ new DataRegionFinder ( getDriver ()). find ( ).clickInsertNewRow ();
256256 selectOptionByText (Locator .name ("quf_user" ), _userHelper .getDisplayNameForEmail (ADMIN_USER ));
257257 clickButton ("Submit" );
258258 _customizeViewsHelper .openCustomizeViewPanel ();
0 commit comments