Error with Selenium /Playwright Web Automation

Question:
Hi , i am not able to run Selenium Web automation over replit, as this code is working fine on VS COde

Current behavior:

Desired behavior

Repl link:
https://replit.com/@harshadkakade94/selenium#main.py

code snippet
from selenium import webdriver
from selenium.webdriver import chromium
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

browser = webdriver.Chrome()

browser.get('http://www.yahoo.com')
assert 'Yahoo' in browser.title

elem = browser.find_element(By.NAME, 'p')  # Find the search box
elem.send_keys('seleniumhq' + Keys.RETURN)

browser.quit()

Hello @harshadkakade94!
This Stack Overflow post may be able to help you.

1 Like