This works in watir 1.9.x: @browser.div(:id, foo).document.scrollintoview
Hope it helps. orde On Sep 27, 8:10 am, the_zonker <[email protected]> wrote: > Hi guys, > > My SUT has a modal popup with dynamically loaded content. When user > scrolls it down new records appear. DIV element of modal popup, which > contains all records, has its own scroll bar. > > So my task is to scroll down DIV to the bottom, wait until all records > are loaded and get them all. > At present moment I cannot scroll down DIV. > > I tried to iteratively focus on records to get scrolling in DIV, but > scrolling didn't happen and thereby no any records are loaded. > > Does watir-webdriver has native methods to scroll inside the element > (not in browser window or frame)? > I know that there are some solutions which use tricky Javascript but > I'm trying to avoid it. > > I appreciate any help. > > Regards, Vadim -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected]
