I'm doing an RPA in Python and I'm having a problem trying to access this site:
My code:
browser = await playwright.chromium.launch(channel='msedge', headless=False, args=['--start-maximized'], slow_mo=1000) #headless=False, args=['--start-maximized']
page = await browser.new_page(accept_downloads=True, no_viewport=True) #no_viewport=True
page.set_default_navigation_timeout(90000)
page.set_default_timeout(90000)
await page.goto(WEBSITE)
for item in [USER, PASSW]:
if item == USER:
await page.fill(item, EMAIL)
else:
await page.fill(item, PASSWORD)
await page.click(LOGIN)
await page.wait_for_timeout(1000)
Error: IMAGE
I've already tried using the user-agent, removing the properties, using context, using variables with the lowercase name and I keep getting the same error, sorry for any mistakes, it's my first post!