My pycharm is in windows, and i config remote linux in pycharm.
And i start a ssh sessioin of this remote linux(Tools-->Start SSH Session...)
than try to run a python script showed as below:
from time import sleep
from selenium import webdriver
driver = webdriver.Chrome('')
soult = driver.get('http://google.com')
if __name__ == '__main__':
then failed, with error:
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally.
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location /usr/lib64/chromium-browser/chromium-browser is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
This script can run successfully in normal linux termial(such as a linux terminal start by MobaXterm also installed in my windows pc).
So i think maybe there are some configuration need to be done with linux when you want to run it in pycharm.
Seems related with linux display server, but i not sure about this, can you guys take a look, thx:)
sudo yum -y install Xvfb libXfont Xorg
sudo yum -y groupinstall "X Window System" "Desktop" "Fonts" "General Purpose Desktop"
Xvfb :99 -screen 0 1024x768x24 &