Permalink
Browse files

A test to see if we can trough a success=false if a click is done to …

…a non clickable object

Also updated selenium standalone server
  • Loading branch information...
1 parent bf26bb6 commit d5a2c2908314cef8121dc8ada4ba383c48e92aa3 @camme camme committed Jun 6, 2012
@@ -0,0 +1,33 @@
+/**
+ * Created with JetBrains PhpStorm.
+ * User: nicolaibilibin
+ * Date: 6/3/12
+ * Time: 11:43 PM
+ * To change this template use File | Settings | File Templates.
+ */
+var webdriverjs = require('webdriverjs');
+var client;
+
+function main() {
+
+ client = webdriverjs.remote();
+
+ //client = webdriverjs.remote({desiredCapabilities:{browserName:"chrome"}});
+ client
+ .init()
+ .url('http://wdjstest.local/clicktest.html')
+ .click("#TestButton")
+ .isVisible("#TestButton", function(found){
+ if(found)
+ {
+ client.click("#TestButton");
+ console.log("FOUND");
+ }
+ else
+ {
+ console.log("NOT FOUND");
+ }
+ })
+}
+
+main();

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d5a2c29

Please sign in to comment.