esthonwood 0 Posted June 24, 2013 Report Share Posted June 24, 2013 Hi guys, so I want to scrape the images in the media grid but scrolling down to the bottom doesn't seem to work. The media grid overlays the timeline. When I used the javascript to scroll to the bottom, it's the timeline that's being loaded instead of the media grid. When I use the mouse to scroll down, that's the only time that the media grid is shown. Any ideas? Here's my code: navigate("https://twitter.com/MariahCarey/media/grid", "Wait")wait for browser event("Everything Loaded", "")loop(5) { run javascript("window.scrollTo(0, document.body.scrollHeight);") wait(3)} Quote Link to post Share on other sites
Pete 121 Posted June 24, 2013 Report Share Posted June 24, 2013 navigate("https://twitter.com/MariahCarey/media/grid", "Wait") wait for element(<class="grid-media ratio">, "", "Appear") wait(2) focus(<class="header-subtitle js-nav">) loop(50) { type text(<class="grid-media ratio">, "\{DOWN\}", "Standard") wait(.100) } 1 Quote Link to post Share on other sites
esthonwood 0 Posted June 26, 2013 Author Report Share Posted June 26, 2013 navigate("https://twitter.com/MariahCarey/media/grid", "Wait") wait for element(<class="grid-media ratio">, "", "Appear") wait(2) focus(<class="header-subtitle js-nav">) loop(50) { type text(<class="grid-media ratio">, "\{DOWN\}", "Standard") wait(.100) } Wow, this is awesome, thanks, zap! I didn't know about typing text to an element other than a textbox and using the word "DOWN". Is there a documentation for this? 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.