See this answer <http://stackoverflow.com/a/28556067/409820> to a recent SO posting by someone with a similar issue. I was able to scroll an example of that control by using .drag_and_drop_by on the div with the 'slimScrollBox' class
On Monday, June 9, 2014 at 12:00:28 PM UTC-7, Joe Fl wrote: > > Hi everyone, > > It was the object i was using. I needed to use this object > > <div id="sidebar-content" class="scroll" style="overflow: hidden; width: > auto; height: 100%;"> > > and it is working now. I would still welcome hearing about how others > doing to handle this problem. > > Thank you, > > Joe > > > > > On Monday, June 9, 2014 1:30:31 PM UTC-4, Joe Fl wrote: >> >> Hi, >> >> I have div that has a number of checkboxes that display columns in a grid >> to the right. The problem is watir-webdriver can not see the one not show >> in the browser and i need to use those. >> >> I have the following method but it is not working as i would expect. I >> have tried 'slimScrollBar' and it does not work for me. >> >> >> def scroll_to_bottom_list >> >> div_with_scroll = @browser.div(:class => 'slimScrollDiv') >> >> >> div_with_scroll.elements.last.li.location_once_scrolled_into_view >> >> end >> >> >> HTML code: >> <div class="slimScrollDiv" style="position: relative; overflow: hidden; >> width: auto; height: 100%;"> >> >> <div id="sidebar-content" class="scroll" style="overflow: hidden; >> width: auto; height: 100%;"> >> <form> >> <div id="count-side"></div> >> <!-- >> >> Search Input >> >> --> >> <div class="sidebar-search"></div> >> <div class="sidebar-widget align-center"></div> >> <div id="total-form"></div> >> </form> >> <div class="fill-nav-space"></div> >> </div> >> <div class="slimScrollBar" style="background: none repeat scroll 0% >> 0% rgb(0, 0, 0); width: 7p…der-radius: 7px; z-index: 99; right: 1px; >> height: 317.679px;"></div> >> <div class="slimScrollRail" style="width: 7px; height: 100%; >> position: absolute; top: 0px; disp…% 0% rgb(51, 51, 51); opacity: 0.2; >> z-index: 90; right: 1px;"></div> >> >> </div> >> >> >> I have googled quite a bit but haven't been able to find a solutions. >> Are there other ways to scroll to an item so all the item are visible to >> watir-webdriver? >> >> Any help would be greatly appreciated. >> >> Thank you, >> Joe >> >> -- -- 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] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
