From d2142a51508a40a5ed91bff93ec0d407bf80031a Mon Sep 17 00:00:00 2001 From: Chris Deely Date: Fri, 10 Aug 2012 12:50:19 -0400 Subject: [PATCH 1/2] Corrected Selenium RC Example in Readme --- Readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index e8d7d76..d0d85bd 100644 --- a/Readme.md +++ b/Readme.md @@ -132,9 +132,10 @@ Sauce Labs also provides a script that you may embed in your CI server to displa .session() .open('/') .type('q', 'Hello World') - .clickAndWait('btnG') + .click('btnG') + .waitForTextPresent('Hello World') .getTitle(function(title){ - assert.ok(~title.indexOf('Hello World')) + assert.ok(~title.indexOf('hello world'), 'Title did not include the query: ' + title); }) .end(function(err){ browser.testComplete(function() { From 39532973b4dcba66cbb0310f5da8474e3583a53a Mon Sep 17 00:00:00 2001 From: Chris Deely Date: Fri, 10 Aug 2012 13:17:22 -0400 Subject: [PATCH 2/2] fixed spacing --- Readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index d0d85bd..a5b15f3 100644 --- a/Readme.md +++ b/Readme.md @@ -135,7 +135,7 @@ Sauce Labs also provides a script that you may embed in your CI server to displa .click('btnG') .waitForTextPresent('Hello World') .getTitle(function(title){ - assert.ok(~title.indexOf('hello world'), 'Title did not include the query: ' + title); + assert.ok(~title.indexOf('hello world'), 'Title did not include the query: ' + title); }) .end(function(err){ browser.testComplete(function() {