Selenium Server, Selenium Client, On An Ubuntu Gui Server
i have a VPS with ubuntu 14.04 LTS and with the desktop package installed, that mean I can launch firefox from a ssh -X session. To make tests, I launched from my server the seleni
Solution 1:
It seems you're trying selenium 3
with latest firefox version. To support latest firefox with selenium 3
, need to download latest geckodriver
executable from this link and extract it into you system at any location.
Now to run selenium-server-standalone-3.0.0-beta3.jar
use below command :-
java -jar selenium-server-standalone-3.0.0-beta3.jar -Dwebdriver.gecko.driver = "path/to/downloaded geckodriver"
Now you need to set capability with marionette
property to true
to support latest firefox with selenium 3
as below :-
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
caps = DesiredCapabilities.FIREFOX
# Tell the Python bindings to use Marionette.
caps["marionette"] = True
driver = webdriver.Remote(command_executor = 'http://127.0.0.1:4444/wd/hub', desired_capabilities = caps)
Note :- For more information about marionette
follow this Mozilla
official page
Post a Comment for "Selenium Server, Selenium Client, On An Ubuntu Gui Server"