Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- casper.start 'https://reports.something.com/login', ->
- this.fill 'form',
- username: params.username
- password: params.password
- , true
- casper.thenOpen queryUrl, {method:'POST', data:queryData}, ->
- this.click 'input'
- casper.then ->
- get = (number) =>
- value = this.fetchText("tr[bgcolor= '#AFC5E4'] > td:nth-of-type(#{number})").trim()
Add Comment
Please, Sign In to add comment