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.