Skip to content

Commit

Permalink
fix sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
winsonwq committed Nov 6, 2013
1 parent c100c39 commit 8fff434
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/webdriver-helper.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,6 @@ _.extend WebDriver.prototype, {

dropdownlist: (selector) -> @element selector

sleep: (duration) -> this.sleep duration

navigateTo: (url) ->
@currentUrl (currUrl) =>
@.get urlHelper.resolve currUrl, url
Expand Down
5 changes: 5 additions & 0 deletions test/src/webdriver-browser-helper_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ describe 'webdriver browser helper', ->
val.should.be.empty
done()

describe '#sleep', ->

it 'could sleep for a while', (done) ->
browser.sleep(2000).then -> done()

describe '#back', ->

it 'could go back to the page in history', (done) ->
Expand Down

0 comments on commit 8fff434

Please sign in to comment.