[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them
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. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them
Try the wd private method, it may work. something like: browser.li( ).wd.location_once_scrolled_into_view #scroll to object On Monday, June 9, 2014 12:30:31 PM UTC-5, 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. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them
Hi, The part of the application I am trying to interact with is a side bar. Thanks again, 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. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[wtr-general] Re: Need to to scroll to bottom of list so remainder of items display and watir-webdriver can interact with them
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. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com --- 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 watir-general+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.