Cheerio: TypeError: $(...).click is not a function | $('.btnPrimary').click(); doesnt work ?

Created on 21 Feb 2017  路  2Comments  路  Source: cheeriojs/cheerio

$('.btnPrimary').click(); doesnt work ?

can't it load second page after clicking on a button ?

Not a bug

Most helpful comment

@rickyblaha is correct (thanks for helping out, Ricky).

All 2 comments

Cheerio is a parser, it won't actually execute any javascript. If you really need to do that try https://github.com/ariya/phantomjs/. Or you could use cheerio to scape the href (or similarly named) attribute on the button that might contain the second page's URL, then load the second page with a new cheerio.

@rickyblaha is correct (thanks for helping out, Ricky).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rajkumarpb picture rajkumarpb  路  3Comments

misner picture misner  路  3Comments

francoisromain picture francoisromain  路  5Comments

collegepinger picture collegepinger  路  3Comments

clayrisser picture clayrisser  路  4Comments