sparklemotion / mechanize

Mechanize is a ruby library that makes automated web interaction easy.

Home Page:https://www.rubydoc.info/gems/mechanize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trouble when having so much li tags?

feliperli opened this issue · comments

Hey everyone I'm doing an experiment using https://api.rubyonrails.org/.

For that, I'm trying to get all the li inside this ul
image

But if I do something like

page = agent.get('https://api.rubyonrails.org/')
puts page.search(".tree")

I only get a empty ul

image

Is there a size limitation or something? I don't get why It does not return all the li.

Just figure it out that this ul is populated with JS after, closing the issue