fix selector
This commit is contained in:
2
main.py
2
main.py
@ -71,7 +71,7 @@ async def __main(phone: str) -> str:
|
||||
) as browser:
|
||||
page = await browser.new_page()
|
||||
await page.goto("https://id.vk.com/restore/#/resetPassword")
|
||||
await page.locator("//input[@name='login']").fill(phone)
|
||||
await page.locator("//input[@name='login' or @name='phone']").fill(phone)
|
||||
await asyncio.sleep(1)
|
||||
await page.locator(
|
||||
"//button[@type='button' and @data-test-id='nextButton']"
|
||||
|
||||
Reference in New Issue
Block a user