Changeset 32672
- Timestamp:
- 2018-12-12T19:06:34+13:00 (5 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/testing/trunk/src/src/org/greenstone/gsdl3/testing/GSTestingUtil.java
r32671 r32672 103 103 public static void loadCollectionByName(WebDriver driver, String collection) 104 104 { 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 105 WebElement demoColLinkElem = findElementByXPath(driver, "//div[contains(concat(' ', normalize-space(@class), ' '), 'collectionLinkText')][descendant::text()='" + collection + "']"); 110 106 demoColLinkElem.click(); -
main/trunk/greenstone3/build.xml
r32671 r32672 4132 4132 <echo>Testing @{testjar}</echo> 4133 4133 <java classname="org.junit.runner.JUnitCore" fork="true"> 4134 <!--<env key="PATH" path="${basedir}/ext/testing/geckodriver:${env.PATH}"/>-->4135 4134 <!--https://stackoverflow.com/questions/38676719/selenium-using-java-the-path-to-the-driver-executable-must-be-set-by-the-webdr--> 4136 4135 <sysproperty key="webdriver.gecko.driver" path="${basedir}/ext/testing/geckodriver"/> 4137 4136 <arg value="gstests.TestClass"/> 4138 4137 <jvmarg value="-DSERVERURL=${default.server.protocol}://${tomcat.server}:${default.tomcat.port}${app.path}${server.default.servlet} "/> 4139 <!--<jvmarg value="-DGECKO_PATH=${default.server.protocol}://${tomcat.server}:${default.tomcat.port}${app.path}${server.default.servlet} "/>-->4140 4138 <classpath> 4141 4139 <fileset dir="${basedir}/ext/testing/lib/java"> -
main/trunk/greenstone3/web/sites/localsite/collect/lucene-jdbm-demo/tests/src/gstests/TestClass.java
r32671 r32672 15 15 public class TestClass 16 16 { 17 /*static {18 System.setProperty("webdriver.gecko.driver", "/Scratch/ak19/gs3-svn-13Sep2018/ext/testing/geckodriver");19 }*/20 21 17 //TODO: Do these dynamically 22 18 private static final int NUMBER_OF_CLASSIFIERS = 4; … … 41 37 { 42 38 //https://stackoverflow.com/questions/38676719/selenium-using-java-the-path-to-the-driver-executable-must-be-set-by-the-webdr 43 // if you didn't update the Path system variable to add the full directory path to the executable as above mentioned then doing this directly through code44 // System.setProperty("webdriver.gecko.driver", "/Scratch/ak19/gs3-svn-13Sep2018/ext/testing/geckodriver");45 39 // GS3's build.xml would have set the webdriver.gecko.driver path System.Property to 40 // the location of Firefox' geckodriver executable when launching this test class already. 41 // So now we can continue to just do: 46 42 _driver.get(System.getProperty("SERVERURL")); 47 43
Note:
See TracChangeset
for help on using the changeset viewer.