8000 Updated example from showcase project · seleniumQuery/seleniumQuery@298d860 · GitHub
[go: up one dir, main page]

Skip to content

Commit 298d860

Browse files
committed
Updated example from showcase project
1 parent c86b85d commit 298d860

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class SeleniumQueryExample {
5050
$.url("http://www.google.com/?hl=en");
5151

5252
$(":text[name='q']").val("selenium"); // the keys are actually typed!
53+
$(":button[name=btnG]").click(); // simulates a real user click (not just the JS event)
5354

5455
// Besides the short syntax and the jQuery behavior you already know,
5556
// other very useful function in seleniumQuery is .waitUntil(),

src/test/java/endtoend/showcase/SeleniumQueryExampleTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015 seleniumQuery authors
2+
* Copyright (c) 2016 seleniumQuery authors
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -40,6 +40,7 @@ public void showcase_should_work() {
4040
$.url("http://www.google.com/?hl=en");
4141

4242
$(":text[name='q']").val("selenium"); // the keys are actually typed!
43+
$(":button[name=btnG]").click(); // simulates a real user click (not just the JS event)
4344

4445
// Besides the short syntax and the jQuery behavior you already know,
4546
// other very useful function in seleniumQuery is .waitUntil(),

0 commit comments

Comments
 (0)
0