Changeset 32671 for gs3-extensions
- Timestamp:
- 2018-12-12T19:03:36+13:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/testing/trunk/src/src/org/greenstone/gsdl3/testing/GSTestingUtil.java
r26117 r32671 103 103 public static void loadCollectionByName(WebDriver driver, String collection) 104 104 { 105 WebElement demoColLinkElem = findElementByXPath(driver, "//div[@id='collectionLinks']/a[descendant::text()='" + collection + "']"); 106 demoColLinkElem.click(); 105 //WebElement demoColLinkElem = findElementByXPath(driver, "//div[contains(concat(' ', normalize-space(@class), ' '), 'collectionLinkText')]/a[descendant::text()='" + collection + "']"); 106 //List<WebElement> demoColLinkElems = findElementsByXPath(driver, "//div[contains(concat(' ', normalize-space(@class), ' '), 'collectionLinkText')]/a[descendant::text()='" + collection + "']"); 107 //demoColLinkElems.get(0).click(); 108 109 WebElement demoColLinkElem = findElementByXPath(driver, "//div[contains(concat(' ', normalize-space(@class), ' '), 'collectionLinkText')][descendant::text()='" + collection + "']"); 110 demoColLinkElem.click(); 107 111 } 108 112
Note:
See TracChangeset
for help on using the changeset viewer.