0

I came across this situation, I need to scroll through the instagram comments to the end, but only this code works for Selenium:

    driver.execute_script("arguments[0].scrollTop = arguments[0].scrollHeight", window)

But I need to make sure that the comments scroll to the end, and this method scrolls them only at the beginning. You also need to consider uploading comments. It is also important to clarify that there is no end element for which the script can be stopped.

1
  • Did you consider using the Instagram API?
    – Kovy Jacob
    Commented Jan 9 at 11:49

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.