From 19c9ec3938839d7c19694deeafc5af226ea79514 Mon Sep 17 00:00:00 2001 From: "pookz@stme" Date: Wed, 9 Oct 2024 16:49:50 +0800 Subject: [PATCH] 1. fix schedule picker 2. fix thumbnail picker --- uploader/tk_uploader/main_chrome.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uploader/tk_uploader/main_chrome.py b/uploader/tk_uploader/main_chrome.py index 4ba3fed..77c3f08 100644 --- a/uploader/tk_uploader/main_chrome.py +++ b/uploader/tk_uploader/main_chrome.py @@ -134,6 +134,8 @@ class TiktokVideo(object): await scheduled_picker.locator('div.TUXInputBox').nth(0).click() await page.wait_for_timeout(500) # 等待500毫秒 # pick minutes after + await scheduled_picker.locator('div.TUXInputBox').nth(0).click() + await page.wait_for_timeout(500) # 等待500毫秒 await self.locator_base.locator(minute_selector).click() # click title to remove the focus. @@ -230,7 +232,7 @@ class TiktokVideo(object): await page.keyboard.press("End") async def upload_thumbnails(self, page): - await self.locator_base.locator(".cover-selector-image-container").click() + await self.locator_base.locator(".cover-container").click() await self.locator_base.locator(".cover-edit-container >> text=Upload cover").click() async with page.expect_file_chooser() as fc_info: await self.locator_base.locator(".upload-image-upload-area").click()