Reputation: 1091
I am currently working on a scripting project and I am using selenium with chrome the problem that i found is when the browser opens, it's not showing anything and its not navigation to the correct url, I can scrape the data without using selenium with chrome but I want to see the UI.
Code:
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
options = Options()
# options.add_argument('--headless')
# options.add_argument('--no-sandbox')
options.add_argument('--disable-dev-shm-usage')
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
driver.get("https://python.org")
print(driver.title)
driver.close()
The interface that I am seeing: it's not navigation to the correct url
I'm following this documentation to set up Selenium with Chrome on Ubuntu/Debian.
I think there might be a version mismatch problem on my laptop, possibly related to SM (Shared Memory) or driver compatibility. I tried using time.sleep()
and WebDriverWait
, but neither worked.
I also switched to Firefox, but encountered a
Message: Process unexpectedly closed with status 127.
Any ideas on what might be causing this?
Upvotes: 0
Views: 51