Ben G
Ben G

Reputation: 26791

Getting text node using Mechanize?

Using Mechanize I want to get the text node following an HTML element:

<b>test</b>THIS IS THE TEXT I WANT.

How do I get that text once I have the <b> node using page.at('b')?

Upvotes: 1

Views: 248

Answers (1)

pguardiario
pguardiario

Reputation: 55002

That would be:

page.at('b').next

Upvotes: 5

Related Questions