Jump to content
UBot Underground

Element Sibling Question


Recommended Posts

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")
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...