fix tencent

This commit is contained in:
pookz@stme
2024-07-18 18:04:12 +08:00
parent 6b9d7990aa
commit 82bfcee904
+3 -3
View File
@@ -258,9 +258,9 @@ class TencentVideo(object):
await page.locator('div.form-content:visible').click() # 下拉菜单 await page.locator('div.form-content:visible').click() # 下拉菜单
await page.locator( 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() 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(): if await page.locator('button:has-text("声明原创"):visible').count():
await page.locator('button:has-text("声明原创"):visible').click() await page.locator('button:has-text("声明原创"):visible').click()
async def main(self): async def main(self):
async with async_playwright() as playwright: async with async_playwright() as playwright: