A
A
Alexey Sundukov2014-11-22 00:48:10
Mozilla Firefox
Alexey Sundukov, 2014-11-22 00:48:10

webdriver firefox without selenuim server how?

This is not the first time I have come across in the docks on the information that firefox can be launched in the background with support for webdriver processing, i.e. without having to run Selenium-Server. But I can not find an adequate description of how to do this. Does anyone know how?
PS The question is about eliminating the need to run Selenium-Server. I run firefox via Xvfb.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yaroslav Astafiev, 2014-11-22
@kentilini

If I understand your question correctly, then:

FirefoxProfile firefoxProfile = new FirefoxProfile();
WebDriver driver = new FirefoxDriver(firefoxProfile);

This code will launch the FF you have installed.
in Profile you can pass the necessary flags, support for native events and other actions.
More detailed FF documentation here
https://code.google.com/p/selenium/wiki/FirefoxDriver

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question