Scrolls up as a percentage of the page.
(self, amount=25)
| 7004 | time.sleep(0.012) |
| 7005 | |
| 7006 | def scroll_up(self, amount=25): |
| 7007 | """Scrolls up as a percentage of the page.""" |
| 7008 | if self.__is_cdp_swap_needed(): |
| 7009 | self.cdp.scroll_up(amount) |
| 7010 | return |
| 7011 | amount = self.get_window_size()["height"] * amount / 100 |
| 7012 | self.execute_script("window.scrollBy(0, -%s);" % amount) |
| 7013 | |
| 7014 | def scroll_down(self, amount=25): |
| 7015 | """Scrolls down as a percentage of the page.""" |
nothing calls this directly
no test coverage detected