Summary
- Works well locally, but fails when deployed.
- A new window should appear when the run button is pressed.
Steps to reproduce
Code snippet:
import streamlit as st
with st.echo():
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from webdriver_manager.chrome import ChromeDriverManager
def get_driver():
return webdriver.Chrome(service=Service(ChromeDriverManager().install()) )
run = st.button('run')
if run:
driver = get_driver()
driver.set_window_size(1400, 1000)
driver.get("https://discuss.streamlit.io/")
If applicable, please provide the steps we should take to reproduce the error or specified behavior.
Expected behavior:
Chrome browser must be open.
Actual behavior:
selenium.common.exceptions.WebDriverException:
Debug info
- Streamlit version: (1.24.0)
- Python version: (Python 3.11.3`)
- Using Conda? PipEnv? PyEnv? Pex?
- OS version: mac
- Browser version: chrome
Requirements file
Links
- Link to your GitHub repo: https://github.com/Gyunald/streamlit-view/blob/main/pages/4_emes.py
- Link to your deployed app: https://gyunald.streamlit.app/emes