Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NODRIVER Await page not working how to fix this problem #1921

Open
ahmedabdelhamedz opened this issue Jun 14, 2024 · 2 comments
Open

NODRIVER Await page not working how to fix this problem #1921

ahmedabdelhamedz opened this issue Jun 14, 2024 · 2 comments

Comments

@ahmedabdelhamedz
Copy link

hello when i use Await page to let the website load before do the rest of code not working how can i fix it

@ahmedabdelhamedz ahmedabdelhamedz changed the title Await page not working how to fix this problem NODRIVER Await page not working how to fix this problem Jun 14, 2024
@ganhj99
Copy link

ganhj99 commented Jun 18, 2024

Please provide at least some source code if you want someone to help you.

@ahmedabdelhamedz
Copy link
Author

Please provide at least some source code if you want someone to help you.

import asyncio
import random

import nodriver as uc
import vodafone
from vodafone import *
import os
ids=801

async def main():
#ip()
browser = await uc.start()

page = await browser.get('https://www.google.com')
await page

await page.maximize()
if name == 'main':
# since asyncio.run never worked (for me)
uc.loop().run_until_complete(main())

@ganhj99 sorry for missing the source code i wrote it above

the browser is maximize before the webpage is load although i use await page to let the webpage to load first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants