CentOS Selenium - Firefox Profile Preparation

I am trying to use selenium with firefox on CentOS from the command line as follows:

java -jar selenium-server-standalone-2.19.0.jar -interactive

Then I type: CMD = getNewBrowserSession & 1 = * firefly & 2 = HTTP://www.google.com

Then it starts on the part "Preparing the Firefox profile ..." and crashes:

13: 59: 13.105 INFO - Preparing a Firefox profile ... 13: 59: 33.366 ERROR - Failed to start a new browser session, disconnect the browser and clear all session data

Please help me solve this problem, I am completely new to the unix world. Thanks!

+3
source share
3 answers

you can define a specific firefox profile (you need to create one first):

java -jar selenium-server.jar -log SeleniumServer.log -firefoxProfileTemplate "PROFILEPATH" -interactive 
+1
source

Do you point directly to the firefox executable or point to an alias?

By default, selenium should point to your selenium binary, what is in / usr / bin is usually a script that interacts with the firefox executable.

+2
source

And for those who are wondering, if you are on the command line, you can create such a profile:

 firefox -CreateProfile profilename 
+1
source

Source: https://habr.com/ru/post/947676/


All Articles