From 715bfd0bb713d51fa4a2127a4e9e3353f1c707a8 Mon Sep 17 00:00:00 2001 From: "pookz@stme" Date: Wed, 22 May 2024 12:56:23 +0800 Subject: [PATCH] maybe the element don't show? --- tk_uploader/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tk_uploader/main.py b/tk_uploader/main.py index b5e5609..70572dd 100644 --- a/tk_uploader/main.py +++ b/tk_uploader/main.py @@ -75,6 +75,7 @@ class TiktokVideo(object): async def set_schedule_time(self, page, publish_date): print("click schedule") + await page.frame_locator(Tk_Locator.tk_iframe).wait_for_selector('div.scheduled-container input') await page.frame_locator(Tk_Locator.tk_iframe).locator('div.scheduled-container input').click() scheduled_picker = page.frame_locator(Tk_Locator.tk_iframe).locator('div.scheduled-picker')