Exemplo n.º 1
0
def check_next_chunk_loaded(step, offsety, times, num):
    get_url(world.browser, "http://localhost:4200/lazy-loaded-loans?totalCount=" + str(num))

    bo.drag_scroll_by_css_with_times(world.browser, offsety, times)
    assert len(get_mb_request()) == int(times) + 2

    bo.drag_scroll_to_top(world.browser, -int(offsety))
    assert len(get_mb_request()) == int(times) + 2
Exemplo n.º 2
0
def drag_scroll_bar_with_offset(step, offset, times):
    with AssertContextManager(step):
        bo.drag_scroll_by_css_with_times(world.browser, offset, times)