简体   繁体   中英

Running Selenium Tests through Linux Server

This is a general question, but I want to run my Selenium tests on a cloud Linux Server. I am accessing this server using PuTTY, which is just a terminal.

I was wondering how I could get my Selenium scripts to run on this VM.

Currently I have a Selenium Grid set up with physical machines, I just do not know how to set one up through a server where the only communication I have with it is through PuTTY and a terminal.

To run Selenium from a Linux server that is "terminal only", as you put it, is to install a GUI inside of the server.

The most common GUI to use, is Xvfb. There are plenty of tutorials out there on how to run GUI programs like Google Chrome and Mozilla Firefox through Xvfb.

您还可以使用PhantomJS进行无头自动化,而无需在Server上安装任何GUI。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM