Jump to content
UBot Underground

Exbrowser - Scroll Down Within An Element


Recommended Posts

i try to scrape the contact list from skype (web version), but i am not able to scroll to bottom to load more contact from this scroll bar.

i think it need to run javascript, anyone know how to do it in exbrowser? thanks a lot.

http://7url.com/ubotimg/scrolldown.jpg

Link to post
Share on other sites

hi, thanks for the answer
 

but the code you provide is to scroll the main page.

if you see the screenshot, the skype contact list is NOT on the main page, but a javascript pop up, so the above code wont work.

Link to post
Share on other sites

Try this, 0 is the offset so set that to be a different number if you need larger offset, and don't forget to change the class name. You can also target by id if possible, which would be better:

var element = document.getElementsByClassName('class name')[0];
element.scrollTo(0, element.scrollHeight);
Link to post
Share on other sites

plugin command("ExBrowser.dll", "ExBrowser Run Javascript", "var element = document.getElementsByClassName(\'slider\')[1];
element.scrollTo(5, element.scrollHeight);")

Thanks for your help, but i tested with the code above and it do not move the slider.

 

here is the web skype

https://preview.web.skype.com/

 

 

Link to post
Share on other sites

You will probably have to play around with it to find the right element. Try to find the container it's in and scroll that. You can use various methods like:

 

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementById

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByClassName

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByName

https://developer.mozilla.org/en-US/docs/Web/API/Document/getElementsByTagName

 

For a quick and easy way to grab different elements.

  • Like 1
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...