Добавила изменения для pom.xml, немного поправила код.Ссылку на документацию я знаю, смотрела, но однако многое непонятно.И я сейчас не очень понимаю, где какую анотацию нужно ставить. Сейчас тест проходит, НО отчет в Allure не создается. Помогите, пожалуйста, доделать пример. Он для меня будет служить примером для других новых приложений.
Вот что вывелось в консоли:
1515610185035 Marionette DEBUG Received DOM event “beforeunload” for “about:blank”
1515610185439 Marionette DEBUG Received DOM event “pagehide” for “about:blank”
1515610185439 Marionette DEBUG Received DOM event “unload” for “about:blank”
1515610186085 Marionette DEBUG Received DOM event “DOMContentLoaded” for “https://yandex.ru/”
1515610186701 Marionette DEBUG Received DOM event “pageshow” for “https://yandex.ru/”
1515610186860 Marionette DEBUG Received DOM event “beforeunload” for “https://yandex.ru/”
1515610187056 Marionette DEBUG Received DOM event “pagehide” for “https://yandex.ru/”
1515610187057 Marionette DEBUG Received DOM event “unload” for “https://yandex.ru/”
1515610187217 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967301”
1515610187882 Marionette DEBUG Received DOM event “DOMContentLoaded” for “Ой!”
1515610188318 Marionette DEBUG Received DOM event “pageshow” for “Ой!”
1515610188403 Marionette DEBUG Received DOM event “beforeunload” for “Ой!”
1515610188680 Marionette DEBUG Received DOM event “pagehide” for “Ой!”
1515610188683 Marionette DEBUG Received DOM event “unload” for “Ой!”
1515610188785 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967306”
1515610188785 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967304”
1515610189805 Marionette DEBUG Received DOM event “DOMContentLoaded” for “Ой!”
1515610190408 Marionette DEBUG Received DOM event “pageshow” for “Ой!”
1515610190487 Marionette DEBUG Received DOM event “beforeunload” for “Ой!”
1515610191293 Marionette DEBUG Received DOM event “pagehide” for “Ой!”
1515610191295 Marionette DEBUG Received DOM event “unload” for “Ой!”
1515610191431 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967311”
1515610191432 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967309”
1515610192379 Marionette DEBUG Received DOM event “DOMContentLoaded” for “Ой!”
1515610192907 Marionette DEBUG Received DOM event “pageshow” for “Ой!”
1515610193008 Marionette DEBUG Received DOM event “beforeunload” for “Ой!”
1515610193646 Marionette DEBUG Received DOM event “pagehide” for “Ой!”
1515610193648 Marionette DEBUG Received DOM event “unload” for “Ой!”
1515610193769 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967316”
1515610193769 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967314”
1515610194576 Marionette DEBUG Received DOM event “DOMContentLoaded” for “Ой!”
1515610195386 Marionette DEBUG Received DOM event “pageshow” for “Ой!”
1515610195711 Marionette DEBUG Canceled page load listener because no navigation has been detected
1515610196578 Marionette DEBUG Canceled page load listener because no navigation has been detected
1515610197097 Marionette DEBUG Canceled page load listener because no navigation has been detected
1515610197132 Marionette DEBUG Received DOM event “beforeunload” for “Ой!”
1515610197615 Marionette DEBUG Received DOM event “pagehide” for “Ой!”
1515610197619 Marionette DEBUG Received DOM event “unload” for “Ой!”
1515610197737 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967321”
1515610197738 Marionette DEBUG Received observer notification “outer-window-destroyed” for “4294967319”
1515610198535 Marionette DEBUG Received DOM event “DOMContentLoaded” for “Ой!”
1515610199249 Marionette DEBUG Received DOM event “pageshow” for “Ой!”
[Parent 3136, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
java.lang.AssertionError:
Expected: is <10>
but: was <12>
Expected :is <10>
Actual :<12>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:956)
at org.junit.rules.ErrorCollector$1.call(ErrorCollector.java:65)
at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:78)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:63)
at org.junit.rules.ErrorCollector.checkThat(ErrorCollector.java:54)
at com.asenwer93.sber.Test.test1(Test.java:61)
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.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
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.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
Build info: version: ‘3.8.1’, revision: ‘6e95a6684b’, time: ‘2017-12-01T18:33:54.468Z’
System info: host: ‘VIKA’, ip: ‘192.168.56.1’, os.name: ‘Windows 8.1’, os.arch: ‘x86’, os.version: ‘6.3’, java.version: ‘1.8.0_152’
Driver info: driver.version: RemoteWebDriver
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:131)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:601)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:398)
at org.openqa.selenium.remote.RemoteWebDriver.findElementsByXPath(RemoteWebDriver.java:477)
at org.openqa.selenium.By$ByXPath.findElements(By.java:356)
at org.openqa.selenium.remote.RemoteWebDriver.findElements(RemoteWebDriver.java:359)
at com.asenwer93.sber.pages.market.YandexMarketTabletsPage.getNameElement(YandexMarketTabletsPage.java:127)
at com.asenwer93.sber.Test.test2(Test.java:66)
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.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
at org.junit.rules.Verifier$1.evaluate(Verifier.java:35)
at org.junit.rules.RunRules.evaluate(RunRules.java:20)
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)
1515610180409 geckodriver INFO geckodriver 0.19.1
1515610180425 geckodriver INFO Listening on 127.0.0.1:18052
1515610181214 mozrunner::runner INFO Running command: “C:\Program Files\Mozilla Firefox\firefox.exe” “-marionette” “-profile” “C:\Users\VIKAI~1\AppData\Local\Temp\rust_mozprofile.IzPsdNKph2ag”
1515610181989 Marionette INFO Enabled via --marionette
Unable to read VR Path Registry from C:\Users\Vika I\AppData\Local\openvr\openvrpaths.vrpath
[Parent 3136, Gecko_IOThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
Unable to read VR Path Registry from C:\Users\Vika I\AppData\Local\openvr\openvrpaths.vrpath
[Child 2440, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
[Child 2440, Chrome_ChildThread] WARNING: pipe error: 109: file z:/build/build/src/ipc/chromium/src/chrome/common/ipc_channel_win.cc, line 346
1515610183484 Marionette INFO Listening on port 49828
1515610184442 Marionette WARN TLS certificate errors will be ignored for this session
1515610184513 Marionette DEBUG Register listener.js for window 4294967297
янв 10, 2018 9:49:44 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: W3C
Process finished with exit code -1
Вот адрес измененного источника: