Thank you for your feedback, @Theo_K !
The configuration for running Selenium on Streamlit Community Cloud is different from running it on your local machine. Here is a minimal example of how to run Selenium on CCloud:
Hereβs a minimal example of running Selenium on Streamlit Cloud:
import streamlit as st
import os, sys
@st.experimental_singleton
def installff():
os.system('sbase install geckodriver')
os.system('ln -s /home/appuser/venv/lib/python3.7/site-packages/seleniumbase/drivers/geckodriver /home/appuser/venv/bin/geckodriver')
_ = installff()
from selenium import webdriver
from selenium.webdriver import FirefoxOptions
opts = FirefoxOptions()
opts.add_argument("--headless")
browser = webdriver.Fireβ¦
I hope this helps.
Best wishes,
Charly
1 Like