fix tencent

This commit is contained in:
pookz@stme
2024-07-18 18:04:12 +08:00
parent 6b9d7990aa
commit 82bfcee904
+1 -1
View File
@@ -258,7 +258,7 @@ class TencentVideo(object):
await page.locator('div.form-content:visible').click() # 下拉菜单
await page.locator(
f'div.form-content:visible ul.weui-desktop-dropdown__list li.weui-desktop-dropdown__list-ele:has-text("{self.category}")').first.click()
await asyncio.sleep(1)
await page.wait_for_timeout(1000)
if await page.locator('button:has-text("声明原创"):visible').count():
await page.locator('button:has-text("声明原创"):visible').click()