Как один и тот же код запускать в разных браузерах?

У меня есть код в репозиторрии, и его запускает дженкинс коммандой mvn clean install.

Сейчас тесты бегают только в ФФ, а я хочу что б один и тот же код можно было запустить на разных браузерах разными коммандами мавена.

Я думала что просто что б запустить в хроме была комманда mvn -Dselenide.browser=chrome, а для ФФ так и осталось бы mvn clean install

Я в тестах в @before прописала

        Configuration.browser="chrome";

Скачала хромдрайвер и положила его в корень проекта. В поме сейчас так

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.github.kpavlov</groupId>
    <artifactId>backup</artifactId>
    <version>1.0-SNAPSHOT</version>

    <properties>
        <java.version>1.8</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
        <selenium.hub.url>http://local.example.com:4444/wd/hub</selenium.hub.url>
        <holdBrowserOpen>false</holdBrowserOpen>
        <surefire.argLine>-Dbrowser=${browser} -Dselenide.holdBrowserOpen=${holdBrowserOpen}</surefire.argLine>
    </properties>

    <prerequisites>
        <maven>3.3</maven>
    </prerequisites>

    <profiles>
        <profile>
            <id>firefox</id>
            <activation>
                <activeByDefault>true</activeByDefault>
            </activation>
            <properties>
                <browser>firefox</browser>
            </properties>
        </profile>
        <profile>
            <id>chrome</id>
            <properties>
                <browser>chrome</browser>
            </properties>
        </profile>
        <profile>
            <id>phantomjs</id>
            <properties>
                <browser>phantomjs</browser>
            </properties>
        </profile>
        <profile>
            <id>ie</id>
            <properties>
                <browser>ie</browser>
            </properties>
        </profile>
        <profile>
            <id>htmlunit</id>
            <properties>
                <browser>htmlunit</browser>
            </properties>
            <dependencies>
                <dependency>
                    <groupId>org.seleniumhq.selenium</groupId>
                    <artifactId>selenium-htmlunit-driver</artifactId>
                    <version>LATEST</version>
                    <scope>test</scope>
                </dependency>
            </dependencies>
        </profile>
        <profile>
            <id>ci-server</id>
            <properties>
                <surefire.argLine>-Dremote=${selenium.hub.url} -Dbrowser=${browser}</surefire.argLine>
            </properties>
        </profile>
    </profiles>

    <build>
        <defaultGoal>clean test</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <argLine>${surefire.argLine}</argLine>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <dependencies>
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-simple</artifactId>
            <version>1.7.13</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.codeborne</groupId>
            <artifactId>selenide</artifactId>
            <version>3.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.12</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>

У меня получилось что в хроме все нормально бегает, а в ФФ открывается браузер и все, даже ссылку начальную не открывает.

Версии ОС винда 7

В консоли идеи логи такие

"C:\Program Files\Java\jdk1.8.0_144\bin\java" -ea -Dbrowser=firefox -Dselenide.holdBrowserOpen=false -Didea.test.cyclic.buffer.size=1048576 "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.3\lib\idea_rt.jar=61192:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.3\lib\idea_rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.3\plugins\junit\lib\junit-rt.jar;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.2.3\plugins\junit\lib\junit5-rt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\deploy.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\access-bridge-64.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\cldrdata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\dnsns.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jaccess.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\jfxrt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\localedata.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\nashorn.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunec.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunjce_provider.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunmscapi.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\sunpkcs11.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\ext\zipfs.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\javaws.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jce.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jfr.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jfxswt.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\management-agent.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\plugin.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\resources.jar;C:\Program Files\Java\jdk1.8.0_144\jre\lib\rt.jar;C:\Users\nlinda\Downloads\kiev-aqa\target\test-classes;C:\Users\nlinda\.m2\repository\org\slf4j\slf4j-simple\1.7.13\slf4j-simple-1.7.13.jar;C:\Users\nlinda\.m2\repository\org\slf4j\slf4j-api\1.7.13\slf4j-api-1.7.13.jar;C:\Users\nlinda\.m2\repository\com\codeborne\selenide\3.5.1\selenide-3.5.1.jar;C:\Users\nlinda\.m2\repository\com\google\guava\guava\19.0\guava-19.0.jar;C:\Users\nlinda\.m2\repository\com\codeborne\phantomjsdriver\1.2.1\phantomjsdriver-1.2.1.jar;C:\Users\nlinda\.m2\repository\commons-codec\commons-codec\1.10\commons-codec-1.10.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-java\2.53.0\selenium-java-2.53.0.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-chrome-driver\2.53.0\selenium-chrome-driver-2.53.0.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-remote-driver\2.53.0\selenium-remote-driver-2.53.0.jar;C:\Users\nlinda\.m2\repository\com\google\code\gson\gson\2.3.1\gson-2.3.1.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-api\2.53.0\selenium-api-2.53.0.jar;C:\Users\nlinda\.m2\repository\org\apache\httpcomponents\httpclient\4.5.1\httpclient-4.5.1.jar;C:\Users\nlinda\.m2\repository\org\apache\httpcomponents\httpcore\4.4.3\httpcore-4.4.3.jar;C:\Users\nlinda\.m2\repository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-edge-driver\2.53.0\selenium-edge-driver-2.53.0.jar;C:\Users\nlinda\.m2\repository\commons-io\commons-io\2.4\commons-io-2.4.jar;C:\Users\nlinda\.m2\repository\org\apache\commons\commons-exec\1.3\commons-exec-1.3.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-firefox-driver\2.53.0\selenium-firefox-driver-2.53.0.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-ie-driver\2.53.0\selenium-ie-driver-2.53.0.jar;C:\Users\nlinda\.m2\repository\net\java\dev\jna\jna\4.1.0\jna-4.1.0.jar;C:\Users\nlinda\.m2\repository\net\java\dev\jna\jna-platform\4.1.0\jna-platform-4.1.0.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-support\2.53.0\selenium-support-2.53.0.jar;C:\Users\nlinda\.m2\repository\org\seleniumhq\selenium\selenium-leg-rc\2.53.0\selenium-leg-rc-2.53.0.jar;C:\Users\nlinda\.m2\repository\junit\junit\4.12\junit-4.12.jar;C:\Users\nlinda\.m2\repository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar" com.intellij.rt.execution.junit.JUnitStarter -ideVersion5 -junit4 tests.ShopTest,show12products
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
8325311411	DeferredSave.extensions.json	DEBUG	Write succeeded
1508325311434	DeferredSave.addons.json	DEBUG	Write succeeded
Unable to read VR Path Registry from C:\Users\nlinda\AppData\Local\openvr\openvrpaths.vrpath
[Child 9480] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1508325314115	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1508325314115	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1508325314115	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1508325314119	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\fxdriver@googlecode.com
1508325314119	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\webdriver-staging
1508325314120	addons.xpi	DEBUG	Existing add-on fxdriver@googlecode.com in app-profile
1508325314121	addons.xpi	INFO	Mapping aushelper@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping clicktoplay-rollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\clicktoplay-rollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping e10srollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping firefox@getpocket.com to C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1508325314121	addons.xpi	INFO	Mapping followonsearch@mozilla.com to C:\Program Files\Mozilla Firefox\browser\features\followonsearch@mozilla.com.xpi
1508325314121	addons.xpi	INFO	Mapping screenshots@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping shield-recipe-client@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\shield-recipe-client@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping webcompat@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1508325314122	addons.xpi	DEBUG	Existing add-on aushelper@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on clicktoplay-rollout@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on e10srollout@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on firefox@getpocket.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on followonsearch@mozilla.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on screenshots@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on shield-recipe-client@mozilla.org in app-system-defaults
1508325314124	addons.xpi	DEBUG	Existing add-on webcompat@mozilla.org in app-system-defaults
1508325314124	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1508325314125	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1508325314125	addons.xpi	DEBUG	getInstallState changed: false, state: {}
1508325314534	addons.productaddons	INFO	sending request to: https://aus5.mozilla.org/update/3/GMP/55.0.3/20170824053622/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%206.1.1.0%20(x64)/default/default/update.xml
1508325315887	addons.productaddons	INFO	Completed downloading document
1508325316248	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316251	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-7a20b7
1508325316940	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316945	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-9c4961

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createFirefoxDriver(WebDriverFactory.java:95)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:40)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.createDriver(WebDriverThreadLocalContainer.java:214)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getAndCheckWebDriver(WebDriverThreadLocalContainer.java:114)
	at com.codeborne.selenide.WebDriverRunner.getAndCheckWebDriver(WebDriverRunner.java:118)
	at com.codeborne.selenide.impl.Navigator.navigateToAbsoluteUrl(Navigator.java:44)
	at com.codeborne.selenide.impl.Navigator.open(Navigator.java:23)
	at com.codeborne.selenide.Selenide.open(Selenide.java:51)
	at tests.ShopTest.goToShopPage(ShopTest.java:32)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Oct 18, 2017 2:15:54 PM org.openqa.selenium.os.ProcessUtils killWinProcess
WARNING: Process refused to die after 10 seconds, and couldn't taskkill it
java.lang.NullPointerException: Unable to find executable for: taskkill
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:251)
	at org.openqa.selenium.os.UnixProcess.<init>(UnixProcess.java:62)
	at org.openqa.selenium.os.CommandLine.<init>(CommandLine.java:38)
	at org.openqa.selenium.os.WindowsUtils.killPID(WindowsUtils.java:178)
	at org.openqa.selenium.os.ProcessUtils.killWinProcess(ProcessUtils.java:138)
	at org.openqa.selenium.os.ProcessUtils.killProcess(ProcessUtils.java:81)
	at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.destroyHarder(UnixProcess.java:247)
	at org.openqa.selenium.os.UnixProcess$SeleniumWatchDog.access$200(UnixProcess.java:201)
	at org.openqa.selenium.os.UnixProcess.destroy(UnixProcess.java:125)
	at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:155)
	at org.openqa.selenium.firefox.FirefoxBinary.quit(FirefoxBinary.java:246)
	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.quit(NewProfileExtensionConnection.java:194)
	at org.openqa.selenium.firefox.FirefoxDriver$LazyCommandExecutor.quit(FirefoxDriver.java:364)
	at org.openqa.selenium.firefox.FirefoxDriver.stopClient(FirefoxDriver.java:310)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:122)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createFirefoxDriver(WebDriverFactory.java:95)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:40)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.createDriver(WebDriverThreadLocalContainer.java:214)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getAndCheckWebDriver(WebDriverThreadLocalContainer.java:114)
	at com.codeborne.selenide.WebDriverRunner.getAndCheckWebDriver(WebDriverRunner.java:118)
	at com.codeborne.selenide.impl.Navigator.navigateToAbsoluteUrl(Navigator.java:44)
	at com.codeborne.selenide.impl.Navigator.open(Navigator.java:23)
	at com.codeborne.selenide.Selenide.open(Selenide.java:51)
	at tests.ShopTest.goToShopPage(ShopTest.java:32)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
8325311411	DeferredSave.extensions.json	DEBUG	Write succeeded
1508325311434	DeferredSave.addons.json	DEBUG	Write succeeded
Unable to read VR Path Registry from C:\Users\nlinda\AppData\Local\openvr\openvrpaths.vrpath
[Child 9480] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1508325314115	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1508325314115	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1508325314115	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1508325314119	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\fxdriver@googlecode.com
1508325314119	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\webdriver-staging
1508325314120	addons.xpi	DEBUG	Existing add-on fxdriver@googlecode.com in app-profile
1508325314121	addons.xpi	INFO	Mapping aushelper@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping clicktoplay-rollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\clicktoplay-rollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping e10srollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping firefox@getpocket.com to C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1508325314121	addons.xpi	INFO	Mapping followonsearch@mozilla.com to C:\Program Files\Mozilla Firefox\browser\features\followonsearch@mozilla.com.xpi
1508325314121	addons.xpi	INFO	Mapping screenshots@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping shield-recipe-client@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\shield-recipe-client@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping webcompat@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1508325314122	addons.xpi	DEBUG	Existing add-on aushelper@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on clicktoplay-rollout@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on e10srollout@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on firefox@getpocket.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on followonsearch@mozilla.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on screenshots@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on shield-recipe-client@mozilla.org in app-system-defaults
1508325314124	addons.xpi	DEBUG	Existing add-on webcompat@mozilla.org in app-system-defaults
1508325314124	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1508325314125	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1508325314125	addons.xpi	DEBUG	getInstallState changed: false, state: {}
1508325314534	addons.productaddons	INFO	sending request to: https://aus5.mozilla.org/update/3/GMP/55.0.3/20170824053622/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%206.1.1.0%20(x64)/default/default/update.xml
1508325315887	addons.productaddons	INFO	Completed downloading document
1508325316248	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316251	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-7a20b7
1508325316940	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316945	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-9c4961

Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'
System info: host: '592-nlinda', ip: '192.168.3.225', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_144'
Driver info: driver.version: FirefoxDriver
selenide.url: https://beta1.secureusb.com/shop
selenide.baseUrl: http://localhost:8080

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:125)
	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:271)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:119)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:216)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:211)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:128)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createFirefoxDriver(WebDriverFactory.java:95)
	at com.codeborne.selenide.webdriver.WebDriverFactory.createWebDriver(WebDriverFactory.java:40)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.createDriver(WebDriverThreadLocalContainer.java:214)
	at com.codeborne.selenide.impl.WebDriverThreadLocalContainer.getAndCheckWebDriver(WebDriverThreadLocalContainer.java:114)
	at com.codeborne.selenide.WebDriverRunner.getAndCheckWebDriver(WebDriverRunner.java:118)
	at com.codeborne.selenide.impl.Navigator.navigateToAbsoluteUrl(Navigator.java:44)
	at com.codeborne.selenide.impl.Navigator.open(Navigator.java:23)
	at com.codeborne.selenide.Selenide.open(Selenide.java:51)
	at tests.ShopTest.goToShopPage(ShopTest.java:32)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
8325311411	DeferredSave.extensions.json	DEBUG	Write succeeded
1508325311434	DeferredSave.addons.json	DEBUG	Write succeeded
Unable to read VR Path Registry from C:\Users\nlinda\AppData\Local\openvr\openvrpaths.vrpath
[Child 9480] WARNING: pipe error: 109: file c:/builds/moz2_slave/m-rel-w64-00000000000000000000/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1508325314115	addons.manager	DEBUG	Starting provider: <unnamed-provider>
1508325314115	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>
1508325314115	addons.manager	DEBUG	Provider finished startup: <unnamed-provider>
1508325314119	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\fxdriver@googlecode.com
1508325314119	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\nlinda\AppData\Local\Temp\anonymous2783156308618886425webdriver-profile\extensions\webdriver-staging
1508325314120	addons.xpi	DEBUG	Existing add-on fxdriver@googlecode.com in app-profile
1508325314121	addons.xpi	INFO	Mapping aushelper@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\aushelper@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping clicktoplay-rollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\clicktoplay-rollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping e10srollout@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\e10srollout@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping firefox@getpocket.com to C:\Program Files\Mozilla Firefox\browser\features\firefox@getpocket.com.xpi
1508325314121	addons.xpi	INFO	Mapping followonsearch@mozilla.com to C:\Program Files\Mozilla Firefox\browser\features\followonsearch@mozilla.com.xpi
1508325314121	addons.xpi	INFO	Mapping screenshots@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\screenshots@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping shield-recipe-client@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\shield-recipe-client@mozilla.org.xpi
1508325314121	addons.xpi	INFO	Mapping webcompat@mozilla.org to C:\Program Files\Mozilla Firefox\browser\features\webcompat@mozilla.org.xpi
1508325314122	addons.xpi	DEBUG	Existing add-on aushelper@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on clicktoplay-rollout@mozilla.org in app-system-defaults
1508325314122	addons.xpi	DEBUG	Existing add-on e10srollout@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on firefox@getpocket.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on followonsearch@mozilla.com in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on screenshots@mozilla.org in app-system-defaults
1508325314123	addons.xpi	DEBUG	Existing add-on shield-recipe-client@mozilla.org in app-system-defaults
1508325314124	addons.xpi	DEBUG	Existing add-on webcompat@mozilla.org in app-system-defaults
1508325314124	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}.xpi
1508325314125	addons.xpi	DEBUG	Existing add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} in app-global
1508325314125	addons.xpi	DEBUG	getInstallState changed: false, state: {}
1508325314534	addons.productaddons	INFO	sending request to: https://aus5.mozilla.org/update/3/GMP/55.0.3/20170824053622/WINNT_x86_64-msvc-x64/en-US/release/Windows_NT%206.1.1.0%20(x64)/default/default/update.xml
1508325315887	addons.productaddons	INFO	Completed downloading document
1508325316248	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316251	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-7a20b7
1508325316940	addons.productaddons	INFO	downloadXHR File download. status=200
1508325316945	addons.productaddons	INFO	Downloaded file will be saved to C:\Users\nlinda\AppData\Local\Temp\tmpaddon-9c4961

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:113)
	... 37 more
2 лайка

а надо -Dbrowser=marionette

1 лайк

делала так и получала СlassNotFoundExeption: marionette :frowning:

1 лайк

пардон, -Dselenide.browser же

1 лайк

аналогично

у меня в @Before
Configuration.browser=“chrome”;
Configuration.browser=“marionette”;

может это из-за этого?
как можно прописать это по-другому?

1 лайк
  1. Оставьте что-то одно для начала
  2. Для марионетт нужно ещё драйвер скачать Release 0.33.0 · mozilla/geckodriver · GitHub
1 лайк

гекодрайвер лежит в корне
если я законментирую строчку Configuration.browser=“marionette”; и выполню команду -Dbrowser=chrome
то все отлично, тест бегает на хроме

если я закомментирую Configuration.browser=“chrome” и выполню -Dbrowser=marionete
то будет СlassNotFoundExeption: marionette

1 лайк

оставьте только строчку Configuration.browser=“marionette”;
тогда -Dbrowser=marionete не надо передавать
вы либо выставляете браузер либо в коде, либо через -D
В вашем случае, надо удалить всё из @Before, связанное с Configuration.browser=
и браузер задавать через -Dselenide.browser=“lalalalal”

1 лайк

А как тогда можно сделать что б дженкинс запускал один и тот же код из одного репозитория в разных джобах просто разными командами?

1 лайк

какая у вас команда на запуск тестов?
mvn lalalall test
вот и сделайте несколько последовательных команд
mvn lalalall -Dselenide.browser=“браузер1” test
mvn lalalall -Dselenide.browser=“браузер2” test
mvn lalalall -Dselenide.browser=“браузер3” test

1 лайк

на mvn -Dselenide.browser=“сhrome” test все отлично работает
а на mvn test - открывается окно ФФ но даже по ссылке не переходит

1 лайк

а с -Dselenide.browser=marionete ?

1 лайк

тоже самое

1 лайк

Сомневаюсь что тоже самое, давайте стектрейс что теперь выдаёт.

1 лайк

Running tests.ShopTest
show12products(tests.ShopTest): run 1 failed
show12products(tests.ShopTest): run 2 failed
show12products(tests.ShopTest): run 3 failed
show12products(tests.ShopTest): run 4 failed
show12products(tests.ShopTest): giving up after 4 failures
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.176 sec <<< FAILURE! - in tests.ShopTest
show12products(tests.ShopTest) Time elapsed: 0.023 sec <<< ERROR!
java.lang.IllegalArgumentException: java.lang.ClassNotFoundException: marionette
at tests.ShopTest.goToShopPage(ShopTest.java:38)
Caused by: java.lang.ClassNotFoundException: marionette
at tests.ShopTest.goToShopPage(ShopTest.java:38)

Results :

Tests in error:
ShopTest.goToShopPage:38 ╗ IllegalArgument java.lang.ClassNotFoundException: m…

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.350 s
[INFO] Finished at: 2017-10-18T15:41:32+03:00
[INFO] Final Memory: 13M/217M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project backup: There are test failures.
[ERROR]
[ERROR] Please refer to C:\Users\nlinda\Downloads\kiev-aqa\target\surefire-reports for the individual test results.
[ERROR] → [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] MojoFailureException - Apache Maven - Apache Software Foundation
‘cmd’ is not recognized as an internal or external command,
operable program or batch file.

в поме у меня

<build>
        <defaultGoal>clean test</defaultGoal>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
            </plugin>
        </plugins>
    </build>
1 лайк

что у вас тут? надо хорошо почистить

1 лайк
@Before
    public  void goToShopPage() throws MalformedURLException {
        Configuration.browserSize = "1680x1050";
        Configuration.timeout = 10000;
       // Configuration.browser="chrome";
        //Configuration.browser="marionette";
        open("https://...");}
1 лайк

класс ShopTest.java 38 строка

1 лайк

получается если просто mvn test - то окно открывается и ничего не происходит, а если
mvn -Dselenide.browser=marionette - то вот эти ошибки, что выше

1 лайк
        open("https://b");}
1 лайк