修复发帖
This commit is contained in:
@@ -452,7 +452,7 @@ def playwright_post(cookies, content, image_key=None):
|
||||
if not image_key:
|
||||
page.click('''//span[contains(text(), "What's on your mind")]''')
|
||||
_edit_privacy(page)
|
||||
page.type('''//div[contains(@aria-placeholder, "What's on your mind")]''', content, delay=50)
|
||||
page.type('''//div[contains(@aria-placeholder, "What's on your mind")]''', content, delay=50, timeout=300000)
|
||||
page.click('//div[@aria-label="Post"]', timeout=300000)
|
||||
time.sleep(15)
|
||||
post_index = page.locator('//div[@aria-posinset="1"]//a[@role="link"]').nth(2)
|
||||
|
||||
Reference in New Issue
Block a user