1. fix schedule picker

2. fix thumbnail picker
This commit is contained in:
pookz@stme
2024-10-09 16:49:50 +08:00
parent f247d1ab05
commit 19c9ec3938
+3 -1
View File
@@ -134,6 +134,8 @@ class TiktokVideo(object):
await scheduled_picker.locator('div.TUXInputBox').nth(0).click() await scheduled_picker.locator('div.TUXInputBox').nth(0).click()
await page.wait_for_timeout(500) # 等待500毫秒 await page.wait_for_timeout(500) # 等待500毫秒
# pick minutes after # 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() await self.locator_base.locator(minute_selector).click()
# click title to remove the focus. # click title to remove the focus.
@@ -230,7 +232,7 @@ class TiktokVideo(object):
await page.keyboard.press("End") await page.keyboard.press("End")
async def upload_thumbnails(self, page): 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() await self.locator_base.locator(".cover-edit-container >> text=Upload cover").click()
async with page.expect_file_chooser() as fc_info: async with page.expect_file_chooser() as fc_info:
await self.locator_base.locator(".upload-image-upload-area").click() await self.locator_base.locator(".upload-image-upload-area").click()