Skip to content

Commit

Permalink
refactor(demo): edit nightmare demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ruanyf committed Jan 17, 2017
1 parent 9c3eb20 commit e8c3342
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion demos/nightmare-demo/taobao.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ nightmare
.goto('https://www.taobao.com/')
.type('#q', '电视机')
.click('form[action*="/search"] [type=submit]')
.wait('#spulist-grid')
.wait(3000)
.exists('#spulist-grid')
// .wait('#spulist-grid')
.evaluate(function () {
return document.querySelector('#spulist-grid .grid-item .info-cont')
.textContent.trim();
Expand Down

0 comments on commit e8c3342

Please sign in to comment.