Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More of a google example

  • Loading branch information...
commit db76272f6a29b0aa3ae606f0f1b92add194a828d 1 parent e41bff9
@tj tj authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 examples/google.js
View
6 examples/google.js
@@ -24,8 +24,12 @@ browser
.type('q', 'Hello World')
.clickAndWait('btnG')
.getTitle(function(title){
- assert.ok(~title.indexOf('Hello World'))
+ assert.ok(~title.indexOf('Hello World'), 'Title did not include the query');
})
+ .clickAndWait('link=Advanced search')
+ .waitForPageToLoad(2000)
+ .assertText('css=#gen-query', 'Hello World')
+ .assertAttribute('as_q@value', 'Hello World')
.testComplete()
.end(function(err){
if (err) throw err;
Please sign in to comment.
Something went wrong with that request. Please try again.