Есть отличная удаленная работа для php+codeception+jenkins+allure+docker спецов. 100% remote! Присоединиться к проекту

Проблема запуска IE и firefox драйверов

thucydides
internet-explorer
firefox
webdriver
Теги: #<Tag:0x00007f7b6992a6a8> #<Tag:0x00007f7b69929f00> #<Tag:0x00007f7b699299d8> #<Tag:0x00007f7b69929640>

(f@zen>) #1

Добрый день коллеги! У меня следующая проблема не запускается IEDriverServer.exe (веб драйвер IE) в IDEA, что только не пробовал. И самое главное что эти же тесты(код, путь) запускаются на другом компьютере. Я покажу ошибку через консоль, чтобы было понятно

TEST STARTED: TwoTestAuth
--------------------------------------------------------------------
[main] INFO net.thucydides.core.Thucydides - TEST NUMBER: 1
[main] INFO net.thucydides.core.steps.StepInterceptor - STARTING STEP: start_browser
Started InternetExplorerDriver server (64-bit)
 2.35.3.0
Listening on port 47843
[main] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW        WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.ie.InternetExplorerDriver: Could not instantiate class org.openqa.selenium.ie.InternetExplorerDriver
net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.ie.InternetExplorerDriver
at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:192)
at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:88)
at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82)
at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54)
at net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:123)
at net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:118)
at net.thucydides.core.pages.PageObject.openPageAtUrl(PageObject.java:733)
at net.thucydides.core.pages.PageObject.open(PageObject.java:643)
at net.thucydides.core.pages.PageObject.open(PageObject.java:631)
at steps.RegistrationSteps.start_browser(RegistrationSteps.java:19)
at steps.RegistrationSteps$$EnhancerByCGLIB$$94ba2c6c.CGLIB$start_browser$10(<generated>)
at steps.RegistrationSteps$$EnhancerByCGLIB$$94ba2c6c$$FastClassByCGLIB$$7e8d0357.invoke(<generated>)
at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
at net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:300)
at net.thucydides.core.steps.StepInterceptor.executeTestStepMethod(StepInterceptor.java:285)
at net.thucydides.core.steps.StepInterceptor.runTestStep(StepInterceptor.java:261)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:125)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51)
at steps.RegistrationSteps$$EnhancerByCGLIB$$94ba2c6c.start_browser(<generated>)
at tests.BeforeClass.myTest(BeforeClass.java:99)
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:483)
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 net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:414)
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 net.thucydides.junit.runners.ThucydidesRunner.run(ThucydidesRunner.java:229)
at org.junit.runners.Suite.runChild(Suite.java:128)
at org.junit.runners.Suite.runChild(Suite.java:27)
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:74)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
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:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer.    Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.91 seconds
Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'Alena-copy', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',     java.version: '1.8.0_31'
    Driver info: org.openqa.selenium.ie.InternetExplorerDriver
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:204)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:162)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:599)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:240)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:225)
at org.openqa.selenium.ie.InternetExplorerDriver.run(InternetExplorerDriver.java:182)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:174)
at org.openqa.selenium.ie.InternetExplorerDriver.<init>(InternetExplorerDriver.java:150)
at     net.thucydides.core.webdriver.WebdriverInstanceFactory.newInternetExplorerDriver(WebdriverInstanceFactory.java:44)
at net.thucydides.core.webdriver.WebDriverFactory.internetExplorerDriver(WebDriverFactory.java:579)
at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:180)
... 56 more

    [main] INFO net.thucydides.core.reports.ReportService - Reporting formats: [JSON, XML, HTML]
    [main] INFO net.thucydides.core.reports.ReportService - Found reporter:            net.thucydides.core.reports.xml.XMLTestOutcomeReporter@e84a8e1(format = Optional.of(XML))
    [main] INFO net.thucydides.core.reports.ReportService - Registering reporter:  net.thucydides.core.reports.xml.XMLTestOutcomeReporter@e84a8e1
   log4j:WARN No appenders could be found for logger (org.jboss.logging).
   log4j:WARN Please initialize the log4j system properly.
   [main] INFO net.thucydides.core.reports.ReportService - Found reporter:   net.thucydides.core.reports.json.JSONTestOutcomeReporter@455351c4(format = Optional.of(JSON))
  [main] INFO net.thucydides.core.reports.ReportService - Registering reporter: net.thucydides.core.reports.json.JSONTestOutcomeReporter@455351c4
  [main] INFO net.thucydides.core.reports.ReportService - Found reporter: net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@23c388c2(format = Optional.of(HTML))
  [main] INFO net.thucydides.core.reports.ReportService - Registering reporter: net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@23c388c2
  [main] INFO net.thucydides.core.reports.ReportService - Generating reports using: net.thucydides.core.reports.xml.XMLTestOutcomeReporter@e84a8e1
  [pool-1-thread-1] INFO net.thucydides.core.reports.ReportService - Processing test outcome   Compare:TwoTestAuth
 [pool-1-thread-1] INFO net.thucydides.core.reports.ReportService -  net.thucydides.core.reports.xml.XMLTestOutcomeReporter@e84a8e1: Generating report for test outcome:    Compare:TwoTestAuth
 [main] INFO net.thucydides.core.reports.ReportService - Report generated for Compare:TwoTestAuth
 [main] INFO net.thucydides.core.reports.ReportService - Reports generated in: 21
 [main] INFO net.thucydides.core.reports.ReportService - Generating reports using:   net.thucydides.core.reports.json.JSONTestOutcomeReporter@455351c4
[pool-2-thread-1] INFO net.thucydides.core.reports.ReportService - Processing test outcome Compare:TwoTestAuth
[pool-2-thread-1] INFO net.thucydides.core.reports.ReportService - 

net.thucydides.core.reports.json.JSONTestOutcomeReporter@455351c4: Generating report for test outcome: Compare:TwoTestAuth
[pool-2-thread-1] INFO net.thucydides.core.reports.ReportService - Report generated for Compare:TwoTestAuth
[main] INFO net.thucydides.core.reports.ReportService - Reports generated in: 160
[main] INFO net.thucydides.core.reports.ReportService - Generating reports using: net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@23c388c2
[pool-3-thread-1] INFO net.thucydides.core.reports.ReportService - Processing test outcome Compare:TwoTestAuth
[pool-3-thread-1] INFO net.thucydides.core.reports.ReportService - net.thucydides.core.reports.html.HtmlAcceptanceTestReporter@23c388c2: Generating report for test outcome: Compare:TwoTestAuth
[pool-3-thread-1] INFO net.thucydides.core.requirements.RequirementsTagProvider - Reading requirements from net.thucydides.core.requirements.FileSystemRequirementsTagProvider@18e6a343
[pool-3-thread-1] INFO net.thucydides.core.requirements.RequirementsTagProvider - Reading requirements from net.thucydides.core.requirements.PackageAnnotationBasedTagProvider@67a4ae7e
[pool-3-thread-1] INFO net.thucydides.core.requirements.RequirementsTagProvider - Requirements found:[]
[pool-1-thread-1] INFO net.thucydides.core.reports.xml.XMLTestOutcomeReporter - Generating XML report for Two test auth to file C:\Test\Automation testing(art-lemon)\Jenkins\project\HamelionTest\target\site\thucydides\a5af284864cbc61760f42502cd87031e2c5052f7dd9cd72b13e474cbd127d6e3.xml
[pool-1-thread-1] INFO net.thucydides.core.reports.xml.XMLTestOutcomeReporter - XML report generated (C:\Test\Automation testing(art-lemon)\Jenkins\project\HamelionTest\target\site\thucydides\a5af284864cbc61760f42502cd87031e2c5052f7dd9cd72b13e474cbd127d6e3.xml bytes) 1559
[pool-3-thread-1] INFO net.thucydides.core.reports.html.HtmlAcceptanceTestReporter - GENERATING HTML REPORT FOR Compare:TwoTestAuth => a5af284864cbc61760f42502cd87031e2c5052f7dd9cd72b13e474cbd127d6e3.html
[pool-3-thread-1] INFO net.thucydides.core.reports.ReportService - Report generated for Compare:TwoTestAuth
[main] INFO net.thucydides.core.reports.ReportService - Reports generated in: 1725

Process finished with exit code -1

Что то в этом роде

Вот а firefox запускается и ни чего не происходит, то есть браузер запускается и в дальнейшем его зацикливает на каждые 2-3 мин

Потом он закрывается, а через 2-3 мин отрывается снова и так до бесконечности

[main] INFO net.thucydides.core.Thucydides - Test Suite Started: Test auth
[main] INFO net.thucydides.core.Thucydides - 
  _____ _____ ____ _____   ____ _____  _    ____ _____ _____ ____  
 |_   _| ____/ ___|_   _| / ___|_   _|/ \  |  _ \_   _| ____|  _ \ 
   | | |  _| \___ \ | |   \___ \ | | / _ \ | |_) || | |  _| | | | |
   | | | |___ ___) || |    ___) || |/ ___ \|  _ < | | | |___| |_| |
   |_| |_____|____/ |_|   |____/ |_/_/   \_\_| \_\|_| |_____|____/ 
                                                                   

TEST STARTED: TwoTestAuth
--------------------------------------------------------------------
[main] INFO net.thucydides.core.Thucydides - TEST NUMBER: 1
[main] INFO net.thucydides.core.steps.StepInterceptor - STARTING STEP: start_browser
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
	DeferredSave.extensions.json	DEBUG	Starting write
1427706098434	addons.manager	DEBUG	shutdown
1427706098434	addons.manager	DEBUG	Calling shutdown blocker for XPIProvider
1427706098435	addons.xpi	DEBUG	shutdown
1427706098435	addons.xpi-utils	DEBUG	shutdown
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for LightweightThemeManager
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for OpenH264Provider
1427706098436	addons.manager	DEBUG	Calling shutdown blocker for PluginProvider
1427706098719	DeferredSave.extensions.json	DEBUG	Write succeeded
1427706098720	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 16
1427706098720	addons.xpi	DEBUG	Notifying XPI shutdown observers
1427706098723	addons.manager	DEBUG	Async provider shutdown done
1427706099273	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1427706099275	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1427706099277	addons.xpi	DEBUG	startup
1427706099278	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\fxdriver@googlecode.com
1427706099278	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\webdriver-staging
1427706099279	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1427706099280	addons.xpi	DEBUG	checkForChanges
1427706099280	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099281	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1427706099287	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099288	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099289	addons.xpi	DEBUG	No changes found
1427706099292	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1427706099293	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for OpenH264Provider
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/Dima/AppData/Local/Temp/anonymous478781521665702444webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11487: TypeError: this.server_ is undefined
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1427706101040	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)
	at net.thucydides.core.webdriver.WebdriverInstanceFactory.newFirefoxDriver(WebdriverInstanceFactory.java:32)
	at net.thucydides.core.webdriver.WebDriverFactory.firefoxDriver(WebDriverFactory.java:538)
	at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:169)
	at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:88)
	at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82)
	at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54)
	at net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:123)
	at net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:118)
	at net.thucydides.core.pages.PageObject.openPageAtUrl(PageObject.java:733)
	at net.thucydides.core.pages.PageObject.open(PageObject.java:643)
	at net.thucydides.core.pages.PageObject.open(PageObject.java:631)
	at steps.RegistrationSteps.start_browser(RegistrationSteps.java:19)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef.CGLIB$start_browser$10(<generated>)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef$$FastClassByCGLIB$$83859845.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
	at net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:300)
	at net.thucydides.core.steps.StepInterceptor.executeTestStepMethod(StepInterceptor.java:285)
	at net.thucydides.core.steps.StepInterceptor.runTestStep(StepInterceptor.java:261)
	at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:125)
	at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef.start_browser(<generated>)
	at tests.BeforeClass.myTest(BeforeClass.java:99)
	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:483)
	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 net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:414)
	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 net.thucydides.junit.runners.ThucydidesRunner.run(ThucydidesRunner.java:229)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	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:74)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
[main] ERROR net.thucydides.core.webdriver.WebDriverFacade - FAILED TO CREATE NEW WEBDRIVER_DRIVER INSTANCE class org.openqa.selenium.firefox.FirefoxDriver: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver
net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver
	at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:192)
	at net.thucydides.core.webdriver.WebDriverFacade.newDriverInstance(WebDriverFacade.java:88)
	at net.thucydides.core.webdriver.WebDriverFacade.newProxyDriver(WebDriverFacade.java:82)
	at net.thucydides.core.webdriver.WebDriverFacade.getProxiedDriver(WebDriverFacade.java:54)
	at net.thucydides.core.webdriver.WebDriverFacade.openIgnoringHtmlUnitScriptErrors(WebDriverFacade.java:123)
	at net.thucydides.core.webdriver.WebDriverFacade.get(WebDriverFacade.java:118)
	at net.thucydides.core.pages.PageObject.openPageAtUrl(PageObject.java:733)
	at net.thucydides.core.pages.PageObject.open(PageObject.java:643)
	at net.thucydides.core.pages.PageObject.open(PageObject.java:631)
	at steps.RegistrationSteps.start_browser(RegistrationSteps.java:19)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef.CGLIB$start_browser$10(<generated>)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef$$FastClassByCGLIB$$83859845.invoke(<generated>)
	at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
	at net.thucydides.core.steps.StepInterceptor.invokeMethod(StepInterceptor.java:300)
	at net.thucydides.core.steps.StepInterceptor.executeTestStepMethod(StepInterceptor.java:285)
	at net.thucydides.core.steps.StepInterceptor.runTestStep(StepInterceptor.java:261)
	at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:125)
	at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:51)
	at steps.RegistrationSteps$$EnhancerByCGLIB$$9a8d5fef.start_browser(<generated>)
	at tests.BeforeClass.myTest(BeforeClass.java:99)
	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:483)
	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 net.thucydides.junit.runners.ThucydidesRunner.runChild(ThucydidesRunner.java:414)
	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 net.thucydides.junit.runners.ThucydidesRunner.run(ThucydidesRunner.java:229)
	at org.junit.runners.Suite.runChild(Suite.java:128)
	at org.junit.runners.Suite.runChild(Suite.java:27)
	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:74)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)
Caused by: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: 
	DeferredSave.extensions.json	DEBUG	Starting write
1427706098434	addons.manager	DEBUG	shutdown
1427706098434	addons.manager	DEBUG	Calling shutdown blocker for XPIProvider
1427706098435	addons.xpi	DEBUG	shutdown
1427706098435	addons.xpi-utils	DEBUG	shutdown
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for LightweightThemeManager
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for OpenH264Provider
1427706098436	addons.manager	DEBUG	Calling shutdown blocker for PluginProvider
1427706098719	DeferredSave.extensions.json	DEBUG	Write succeeded
1427706098720	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 16
1427706098720	addons.xpi	DEBUG	Notifying XPI shutdown observers
1427706098723	addons.manager	DEBUG	Async provider shutdown done
1427706099273	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1427706099275	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1427706099277	addons.xpi	DEBUG	startup
1427706099278	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\fxdriver@googlecode.com
1427706099278	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\webdriver-staging
1427706099279	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1427706099280	addons.xpi	DEBUG	checkForChanges
1427706099280	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099281	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1427706099287	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099288	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099289	addons.xpi	DEBUG	No changes found
1427706099292	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1427706099293	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for OpenH264Provider
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/Dima/AppData/Local/Temp/anonymous478781521665702444webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11487: TypeError: this.server_ is undefined
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1427706101040	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'Alena-copy', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: driver.version: FirefoxDriver
	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:130)
	at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:191)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:186)
	at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:103)
	at net.thucydides.core.webdriver.WebdriverInstanceFactory.newFirefoxDriver(WebdriverInstanceFactory.java:32)
	at net.thucydides.core.webdriver.WebDriverFactory.firefoxDriver(WebDriverFactory.java:538)
	at net.thucydides.core.webdriver.WebDriverFactory.newWebdriverInstance(WebDriverFactory.java:169)
	... 51 more
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:
	DeferredSave.extensions.json	DEBUG	Starting write
1427706098434	addons.manager	DEBUG	shutdown
1427706098434	addons.manager	DEBUG	Calling shutdown blocker for XPIProvider
1427706098435	addons.xpi	DEBUG	shutdown
1427706098435	addons.xpi-utils	DEBUG	shutdown
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for LightweightThemeManager
1427706098435	addons.manager	DEBUG	Calling shutdown blocker for OpenH264Provider
1427706098436	addons.manager	DEBUG	Calling shutdown blocker for PluginProvider
1427706098719	DeferredSave.extensions.json	DEBUG	Write succeeded
1427706098720	addons.xpi-utils	DEBUG	XPI Database saved, setting schema version preference to 16
1427706098720	addons.xpi	DEBUG	Notifying XPI shutdown observers
1427706098723	addons.manager	DEBUG	Async provider shutdown done
1427706099273	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/addons/XPIProvider.jsm: ["XPIProvider"]
1427706099275	addons.manager	DEBUG	Loaded provider scope for resource://gre/modules/LightweightThemeManager.jsm: ["LightweightThemeManager"]
1427706099277	addons.xpi	DEBUG	startup
1427706099278	addons.xpi	INFO	Mapping fxdriver@googlecode.com to C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\fxdriver@googlecode.com
1427706099278	addons.xpi	DEBUG	Ignoring file entry whose name is not a valid add-on ID: C:\Users\Dima\AppData\Local\Temp\anonymous478781521665702444webdriver-profile\extensions\webdriver-staging
1427706099279	addons.xpi	INFO	Mapping {972ce4c6-7e08-4474-a285-3208198ce6fd} to C:\Program Files (x86)\Mozilla Firefox\browser\extensions\{972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-share
1427706099279	addons.xpi	DEBUG	Skipping unavailable install location app-system-local
1427706099280	addons.xpi	DEBUG	checkForChanges
1427706099280	addons.xpi	DEBUG	Loaded add-on state from prefs: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099281	addons.xpi	DEBUG	getModTime: Recursive scan of fxdriver@googlecode.com
1427706099287	addons.xpi	DEBUG	getModTime: Recursive scan of {972ce4c6-7e08-4474-a285-3208198ce6fd}
1427706099288	addons.xpi	DEBUG	getInstallState changed: false, state: {"app-profile":{"fxdriver@googlecode.com":{"d":"C:\\Users\\Dima\\AppData\\Local\\Temp\\anonymous478781521665702444webdriver-profile\\extensions\\fxdriver@googlecode.com","e":true,"v":"2.44.0","st":1427706095557,"mt":1427706095194}},"app-global":{"{972ce4c6-7e08-4474-a285-3208198ce6fd}":{"d":"C:\\Program Files (x86)\\Mozilla Firefox\\browser\\extensions\\{972ce4c6-7e08-4474-a285-3208198ce6fd}","e":true,"v":"36.0.4","st":1427108278090,"mt":1427108278058}}}
1427706099289	addons.xpi	DEBUG	No changes found
1427706099292	addons.manager	DEBUG	Registering shutdown blocker for XPIProvider
1427706099293	addons.manager	DEBUG	Registering shutdown blocker for LightweightThemeManager
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for OpenH264Provider
1427706099294	addons.manager	DEBUG	Registering shutdown blocker for PluginProvider
JavaScript error: file:///C:/Users/Dima/AppData/Local/Temp/anonymous478781521665702444webdriver-profile/extensions/fxdriver@googlecode.com/components/driver-component.js, line 11487: TypeError: this.server_ is undefined
JavaScript error: chrome://fxdriver/content/server.js, line 38: NS_ERROR_XPC_CI_RETURNED_FAILURE: Component returned failure code: 0x80570015 (NS_ERROR_XPC_CI_RETURNED_FAILURE) [nsIJSCID.createInstance]
*** Blocklist::_preloadBlocklistFile: blocklist is disabled
1427706101040	addons.manager	DEBUG	Registering shutdown blocker for <unnamed-provider>

	at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:118)
	... 59 more
[main] INFO net.thucydides.core.steps.StepInterceptor - STEP FAILED: start_browser - Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver
Disconnected from the target VM, address: '127.0.0.1:49399', transport: 'socket'

Process finished with exit code -1

Я думаю что проблема именно в браузерах в настройках. Помогите плз


(vmaximv) #2
  1. ИЕ - Читайте трассу до конца
Caused by: org.openqa.selenium.remote.SessionNotFoundException: Unexpected error launching Internet Explorer.    Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 1.91 seconds
Build info: version: '2.44.0', revision: '76d78cf323ce037c5f92db6c1bba601c2ac43ad8', time: '2014-10-23 13:11:40'
System info: host: 'Alena-copy', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1',     java.version: '1.8.0_31'

2 ФФ

Build info: version: '2.44.0'
"v":"36.0.4"

Приводите в соответствие версии ФФ и Селениума


(f@zen>) #3

Спасибо за уточнение! С firefox решил проблему, а вот с IE нет. Я понял что надо включить защищенный режим

Однако это не помогло, не могли бы подробней указать на проблему?


(vmaximv) #4

Protected Mode must be set to the same value (enabled or disabled) for all zones.
Как еще подробней сказать - я не знаю.


(f@zen>) #5

Спасибо я понял свою ошибку)


(f@zen>) #6

Столкнулся с трубой проблемой почему-то драйвер запускается, а потом падает и пишет

[main] INFO net.thucydides.core.Thucydides - TEST NUMBER: 1
[main] INFO net.thucydides.core.steps.StepInterceptor - STARTING STEP: start_browser
Started InternetExplorerDriver server (32-bit)
2.39.0.0
Listening on port 34043
[main] WARN net.thucydides.core.webdriver.WebDriverFacade - Failed to take screenshot - driver closed already? (Unable to get browser (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 4 milliseconds
Build info: version: '2.45.0', revision: '5017cb8e7ca8e37638dc3091b2440b90a1d8686f', time: '2015-02-27 09:10:26'
System info: host: 'Alena-copy', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'
Driver info: org.openqa.selenium.ie.InternetExplorerDriver

С чем эта проблема связана? Заранее благодарен)


(vmaximv) #7

Ворнинг вижу, проблему - нет.

PS: Версии драйвера и селениума желательно синхронизировать.


(f@zen>) #8

Ворнинг вижу, проблему - нет.

А разве это не проблема? Что драйвер падает! Все равно не пойму что это может быть!


(vmaximv) #9

В показанном вами куске из лога никто не куда не падает.
Thucydides пытается сделать скрин, но не может driver closed already? - вот и все, что можно сказать.
Ищите cause, а не следствие…


(inkvizitorz) #10

Скажите, а перед тем как упасть, драйвер успевает что-либо сделать? Загрузить страницу например?


(f@zen>) #11

да вот пример

Я подозреваю что IE не находит локатор


(Denis Gayevskiy) #12

Локатор и тест тут не при чем. Вы, судя по комментариям, совсем не любите внимательно читать - ''An error occurred outside of step execution", то есть проблема НЕ связана напрямую с логикой тестов. Далее в логе написано “Unable to get browser”, то есть вебдрайверу нечем манипулировать - нет браузера(крешнулся/эксепшн и тд). Правильный вопрос, почему крешится ваш браузер? Можно попробовать свежую версию драйвера (IEDriverServer_2.45.0.zip) + правильно выбрать тип системы(64/32).


(f@zen>) #13

Скажите, как можно нормализовать окно в драйвере IE?


(Denis Gayevskiy) #14

Что такое нормализовать?


(f@zen>) #15

Чтобы окно не прыгало при запуске и прохождение тест кейсов типа так при запуске(сворачивается) при первом тест кейсе (разворачивается) и так на протяжение всего теста


(Denis Gayevskiy) #16

:flushed: Имеется ввиду, что браузер открывается после каждого теста заново или во время теста это происходит?


(f@zen>) #17

Вот


(inkvizitorz) #18

А можете тут выложить код двух последних шагов?