deliter 203 Posted August 4, 2016 Report Share Posted August 4, 2016 Hey I was stumped by the Ubot example,and it worked for me http://wiki.ubotstudio.com/wiki/Element_Sibling Why does their need to be two element siblings nested into each other to get the next element sibling?I am not trying to be smart by saying Ive spotted a bug or something,but I would like to know the reasoning so I can understand Ubot better at first I thought the first element sibling was the original element,andthe second was the next sibling,but if I remove the second one,it doesnt select anything so I am stumped load html("<html> <head> <title>DOM Tutorial</title> </head> <body> <h1>DOM Lesson one</h1> <p>Hello world!</p> </body> </html>") set(#sibling, $scrape attribute($element sibling($element sibling(<tagname="h1">)), "innertext"), "Global") Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.