def yys_click(driver): public.swipe_screen_down(driver, 'tv.acfundanmaku.video:id/home_channel', y=-367) sleep(5) el = driver.find_element_by_id('tv.acfundanmaku.video:id/home_channel') el.click()
def yx_random_click(driver): public.swipe_screen_down(driver, 'tv.acfundanmaku.video:id/home_channel', y=-305) sleep(5) driver.find_element_by_id('tv.acfundanmaku.video:id/home_cover' + str(random.randint(1, 4))).click()