@@ -219,11 +219,7 @@ public final void testList() throws Exception
219219 // Mouse over the logo, migh help with the following mouse over the image.
220220 mouseOver (Locator .tagWithAttributeContaining ("img" , "src" , "logo.image" ));
221221 sleep (500 );
222- mouseOver (Locator .xpath ("//img[contains(@title, '" + LRG_PNG_FILE .getName () + "')]" ));
223- longWait ().until (ExpectedConditions .visibilityOfElementLocated (By .cssSelector ("#helpDiv" )));
224- String src = Locator .xpath ("//div[@id='helpDiv']//img[contains(@src, 'download')]" ).findElement (getDriver ()).getAttribute ("src" );
225- assertTrue ("Wrong image in popup: " + src , src .contains (LRG_PNG_FILE .getName ()));
226- assertEquals ("Bad response from image pop-up" , HttpStatus .SC_OK , WebTestHelper .getHttpResponse (src ).getResponseCode ());
222+ verifyImagePopupInGrid (LRG_PNG_FILE );
227223
228224 // Commenting out for now. There is a random behavior where sometimes the thumbnail image will not show up when you move from one cell to another.
229225 /*
@@ -303,7 +299,7 @@ public final void testList() throws Exception
303299 sleep (500 );
304300 mouseOver (Locator .xpath ("//img[contains(@title, '" + LRG_PNG_FILE .getName () + "')]" ));
305301 shortWait ().until (ExpectedConditions .visibilityOfElementLocated (By .cssSelector ("#helpDiv" )));
306- src = Locator .xpath ("//div[@id='helpDiv']//img[contains(@src, 'download')]" ).findElement (getDriver ()).getAttribute ("src" );
302+ var src = Locator .xpath ("//div[@id='helpDiv']//img[contains(@src, 'download')]" ).findElement (getDriver ()).getAttribute ("src" );
307303 assertTrue ("Wrong image in popup: " + src , src .contains (LRG_PNG_FILE .getName ()));
308304 assertEquals ("Bad response from image pop-up" , HttpStatus .SC_OK , WebTestHelper .getHttpResponse (src ).getResponseCode ());
309305
0 commit comments