Skip to content

Commit 27e1ef2

Browse files
committed
Updated demo to match the 0.9.0 released version
1 parent 4665752 commit 27e1ef2

8 files changed

+17
-32
lines changed

pom.xml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.github.seleniumquery</groupId>
66
<artifactId>seleniumquery-demos</artifactId>
7-
<version>0.9.0-SNAPSHOT</version>
7+
<version>0.9.0</version>
88

99
<name>seleniumQuery demos</name>
1010
<url>http://seleniumquery.github.io/</url>
@@ -18,7 +18,7 @@
1818
<dependency>
1919
<groupId>io.github.seleniumquery</groupId>
2020
<artifactId>seleniumquery</artifactId>
21-
<version>0.9.0-SNAPSHOT</version>
21+
<version>0.9.0</version>
2222
</dependency>
2323

2424
<!-- BELOW, TEST DEPENDENCIES ONLY -->
@@ -54,18 +54,6 @@
5454
</dependency>
5555
</dependencies>
5656

57-
<repositories>
58-
<repository>
59-
<id>sonatype-nexus-snapshots</id>
60-
<name>Sonatype Nexus Snapshots</name>
61-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
62-
<snapshots>
63-
<enabled>true</enabled>
64-
<updatePolicy>always</updatePolicy>
65-
</snapshots>
66-
</repository>
67-
</repositories>
68-
6957
<build>
7058
<plugins>
7159
<plugin>

src/main/java/other/SeleniumQueryExample.java

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44

55
public class SeleniumQueryExample {
66
public static void main(String[] args) {
7-
// sets Firefox as the driver -- this is optional, if omitted, will default
8-
// to HtmlUnit or whatever you set at the, also optional, config files
9-
//
10-
$.driver().useFirefox().withoutJavaScript(); // JS will be disabled!
7+
// sets Firefox as the driver (this is optional, if omitted, will default to HtmlUnit)
8+
$.driver().useFirefox().withoutJavaScript(); // JavaScript will be disabled!
119

1210
$.url("http://www.google.com/?hl=en");
1311

14-
$(":text[name='q']").val("selenium"); // the keys are actually typed
12+
$(":text[name='q']").val("selenium"); // the keys are actually typed!
1513
$(":button:contains('Google Search')").click();
16-
17-
String resultsText = $("#resultStats").text();
18-
System.out.println(resultsText);
14+
// Another way: $(":text[name='q']").val("selenium").submit();
1915

2016
// Besides the short syntax and the jQuery behavior you already know,
2117
// other very useful function in seleniumQuery is .waitUntil(),
22-
// handy for dealing with Ajax enabled pages:
23-
//
24-
$(":input[name='q']").waitUntil().is(":enabled");
25-
// The line above waits for no time, as that input is always enabled in google.com
18+
// handy for dealing with user-waiting actions (specially in Ajax enabled pages):
19+
String resultsText = $("#resultStats").waitUntil().is(":visible").then().text();
20+
System.out.println(resultsText);
2621

2722
$.quit(); // quits the currently used driver (firefox)
2823
}

src/main/resources/IEDriverServer.exe

-51.5 KB
Binary file not shown.

src/main/resources/IEDriverServer.exe-is-version-win32_2.41.0.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
File: IEDriverServer_Win32_2.44.0.zip
2+
Downloaded from: http://selenium-release.storage.googleapis.com/2.44/IEDriverServer_Win32_2.44.0.zip
3+
When: 30/11/2014

src/main/resources/chromedriver.exe

-417 KB
Binary file not shown.

src/main/resources/chromedriver.exe-is-version-win32_2.10.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
File: chromedriver_win32_2.12.zip
2+
Downloaded from: http://chromedriver.storage.googleapis.com/2.12/chromedriver_win32.zip
3+
When: 30/11/2014
4+
5+
More: http://chromedriver.storage.googleapis.com/index.html

0 commit comments

Comments
 (0)