From f833d217afc534a0d9a12413828c2d54da0cb251 Mon Sep 17 00:00:00 2001 From: Priyanka Ganti Date: Sat, 1 Jun 2013 12:56:04 -0700 Subject: [PATCH] add dependencies for webdriver java tests --- webdriver/java/Selenium2Example.java | 46 ++++++++++++++++++ webdriver/java/pom.xml | 36 ++++++++++++++ webdriver/java/target/MySel20Proj-1.0.jar | Bin 0 -> 1550 bytes webdriver/java/target/classes/.classpath | 7 +++ webdriver/java/target/classes/.project | 23 +++++++++ .../.settings/org.eclipse.jdt.core.prefs | 6 +++ .../.settings/org.eclipse.m2e.core.prefs | 5 ++ .../target/classes/Selenium2Example.class | Bin 0 -> 1591 bytes webdriver/java/target/classes/pom.xml | 36 ++++++++++++++ .../target/classes/target/MySel20Proj-1.0.jar | Bin 0 -> 1550 bytes .../target/maven-archiver/pom.properties | 5 ++ .../java/target/maven-archiver/pom.properties | 5 ++ 12 files changed, 169 insertions(+) create mode 100644 webdriver/java/Selenium2Example.java create mode 100644 webdriver/java/pom.xml create mode 100644 webdriver/java/target/MySel20Proj-1.0.jar create mode 100644 webdriver/java/target/classes/.classpath create mode 100644 webdriver/java/target/classes/.project create mode 100644 webdriver/java/target/classes/.settings/org.eclipse.jdt.core.prefs create mode 100644 webdriver/java/target/classes/.settings/org.eclipse.m2e.core.prefs create mode 100644 webdriver/java/target/classes/Selenium2Example.class create mode 100644 webdriver/java/target/classes/pom.xml create mode 100644 webdriver/java/target/classes/target/MySel20Proj-1.0.jar create mode 100644 webdriver/java/target/classes/target/maven-archiver/pom.properties create mode 100644 webdriver/java/target/maven-archiver/pom.properties diff --git a/webdriver/java/Selenium2Example.java b/webdriver/java/Selenium2Example.java new file mode 100644 index 0000000..db14b43 --- /dev/null +++ b/webdriver/java/Selenium2Example.java @@ -0,0 +1,46 @@ + +import org.openqa.selenium.By; +import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.ExpectedCondition; +import org.openqa.selenium.support.ui.WebDriverWait; + +public class Selenium2Example { + public static void main(String[] args) { + // Create a new instance of the Firefox driver + // Notice that the remainder of the code relies on the interface, + // not the implementation. + WebDriver driver = new FirefoxDriver(); + + // And now use this to visit Google + driver.get("https://rockstor-iso:8443"); + // Alternatively the same thing can be done like this + // driver.navigate().to("http://www.google.com"); + + // Find the text input element by its name + WebElement username = driver.findElement(By.id("inputUsername")); + + // Enter something to search for + username.sendKeys("admin"); + + WebElement password = driver.findElement(By.id("inputPassword")); + password.sendKeys("admin"); + + WebElement submit = driver.findElement(By.id("sign_in")); + + // Now submit the form. WebDriver will find the form for us from the element + submit.click(); + + WebElement logoutSubmit = driver.findElement(By.id("logout_user")); + + logoutSubmit.click(); + + // Check the title of the page + System.out.println("Page title is: " + driver.getTitle()); + + //Close the browser + //driver.quit(); + } +} + diff --git a/webdriver/java/pom.xml b/webdriver/java/pom.xml new file mode 100644 index 0000000..a0b4768 --- /dev/null +++ b/webdriver/java/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + MySel20Proj + MySel20Proj + 1.0 + + + org.seleniumhq.selenium + selenium-java + 2.33.0 + + + com.opera + operadriver + + + + + + com.opera + operadriver + 1.3 + + + org.seleniumhq.selenium + selenium-remote-driver + + + + + + + diff --git a/webdriver/java/target/MySel20Proj-1.0.jar b/webdriver/java/target/MySel20Proj-1.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..e34fa935d7b5f6dd01526a818f784ce88aaed388 GIT binary patch literal 1550 zcmWIWW@h1H0D(6R+nvA+D8UJ&eO*Hwbv^yu^aG&EI2c|7mF;=4$07|VT?51-$jW>j z{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__6b?$_Yx2_Wh`;#SMQ^d3n zs8sBn(;X!29TZ$LS8J_^47bo^;~>!*;nP8%fihmk#a;&)_Ps^TdU8(IQ=>uW~TC+Cl|S}qoH-@J2s3orKv(;LZ4rhJ)wyi6(*Z=#fiEAgs%wu_S1+lQ*|ba89jub8vAF4^!8t%{zp;y^JmkP4>Rf!WiJq$RxsyJDUUD3 + + + + + + diff --git a/webdriver/java/target/classes/.project b/webdriver/java/target/classes/.project new file mode 100644 index 0000000..caf4c59 --- /dev/null +++ b/webdriver/java/target/classes/.project @@ -0,0 +1,23 @@ + + + MySel20Proj + NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse. + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.jdt.core.javanature + + diff --git a/webdriver/java/target/classes/.settings/org.eclipse.jdt.core.prefs b/webdriver/java/target/classes/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..e18b690 --- /dev/null +++ b/webdriver/java/target/classes/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,6 @@ +#Thu May 23 16:10:27 PDT 2013 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 +org.eclipse.jdt.core.compiler.compliance=1.5 +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.5 diff --git a/webdriver/java/target/classes/.settings/org.eclipse.m2e.core.prefs b/webdriver/java/target/classes/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..eeafa3f --- /dev/null +++ b/webdriver/java/target/classes/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,5 @@ +#Thu May 23 16:10:20 PDT 2013 +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/webdriver/java/target/classes/Selenium2Example.class b/webdriver/java/target/classes/Selenium2Example.class new file mode 100644 index 0000000000000000000000000000000000000000..85c6c395724be07167d8bf09d4c48c314da19642 GIT binary patch literal 1591 zcmZ`(TU!%X6kR7I&Jae$AXqeNTC`0JI2CEJiA4pW7bDURV$rtrBsmO6=Mv{)<+X3^ zziA(!sh|A;{Zak8PbM^l4ln1nFK4g4*WQ2q{l}jGZh&jZFpOHl5uS|Q+2z;V?Knb1 zmR_IpSKM^CXPb|j&qXU@IB{EgGFo65DpxibvP*tjvINgw*SdHDL2-bPi z5e$Wf-{Q^&52U*HAG6Vp43+HYzjgBIa_KQll%F*Q|65TYJ-c4n&~S#K;s>_rcZBzn zn_)k4b6W;t+kb7YB>Vk9z7jzmqZrn4mSJ)yiaKGcCMuvXv*4*695lrA6 z4d)mxruls$nu#w1lQ>VvZ9$0`FQ-MPqsVYldYw3W9E!l>E@kHuN*XQ`qBQS|y9VCH zdkh)bW|&U%+DNyntGKTixQh1~Mz*EbUUq~lJPNK>KF+3+Dj z!|+ExXzQ3`&_Zc@Tgks48<Km#hO)(%tCz?OB zYIHMcXSC<8?L+^yC(hHV#K15{Xf+ZA+E4c0PT@4YkTEOt909+)!RY2bji_p2tc&ps zs)Y-`<6;+689bcMzQqTdLxqafMOBGz9EetDj*4y`h-%r%Y!@FfQor@@TW&Jfd;1Nw zH@Lf5Slq|`Y8NXEd-!q>t9$rrfMAy51x`W78JcSoDAGi#;sUip5i2xjEK12!Ou?q1 z;GvA4sY?~w1;S2-Y)ZV3Y6`N$V+|QTpb|_FFm)(LRsw=#(WdQ}~`vInvxB Iy9|E#2N@5JegFUf literal 0 HcmV?d00001 diff --git a/webdriver/java/target/classes/pom.xml b/webdriver/java/target/classes/pom.xml new file mode 100644 index 0000000..a0b4768 --- /dev/null +++ b/webdriver/java/target/classes/pom.xml @@ -0,0 +1,36 @@ + + + 4.0.0 + MySel20Proj + MySel20Proj + 1.0 + + + org.seleniumhq.selenium + selenium-java + 2.33.0 + + + com.opera + operadriver + + + + + + com.opera + operadriver + 1.3 + + + org.seleniumhq.selenium + selenium-remote-driver + + + + + + + diff --git a/webdriver/java/target/classes/target/MySel20Proj-1.0.jar b/webdriver/java/target/classes/target/MySel20Proj-1.0.jar new file mode 100644 index 0000000000000000000000000000000000000000..e34fa935d7b5f6dd01526a818f784ce88aaed388 GIT binary patch literal 1550 zcmWIWW@h1H0D(6R+nvA+D8UJ&eO*Hwbv^yu^aG&EI2c|7mF;=4$07|VT?51-$jW>j z{XE@VgG2Ou-9G!CIql=Et9OytTUYDcne&^246YbIcv__6b?$_Yx2_Wh`;#SMQ^d3n zs8sBn(;X!29TZ$LS8J_^47bo^;~>!*;nP8%fihmk#a;&)_Ps^TdU8(IQ=>uW~TC+Cl|S}qoH-@J2s3orKv(;LZ4rhJ)wyi6(*Z=#fiEAgs%wu_S1+lQ*|ba89jub8vAF4^!8t%{zp;y^JmkP4>Rf!WiJq$RxsyJDUUD3