From 63ea69f69e7538a6c2173ac165ea4acf0b4340cd Mon Sep 17 00:00:00 2001 From: Jeevan121 <37274845+Jeevan121@users.noreply.github.com> Date: Sun, 6 May 2018 19:30:58 +0530 Subject: [PATCH] Add files via upload --- .../test/java/com/demo/tests/BaseTest.java | 17 ++- .../test/java/com/demo/tests/DemoTest.java | 46 ++++---- DemoApp/src/test/java/com/pages/HomePage.java | 21 +++- .../com/demo/tests/BaseTest.class | Bin 5066 -> 5816 bytes .../com/demo/tests/DemoTest.class | Bin 1960 -> 3139 bytes .../test-classes/com/pages/HomePage.class | Bin 1465 -> 1908 bytes .../Default suite/Default test.html | 101 ++---------------- .../Default suite/Default test.xml | 51 +-------- DemoApp/test-output/emailable-report.html | 49 +-------- DemoApp/test-output/index.html | 83 ++++---------- .../TEST-com.demo.tests.DemoTest.xml | 51 +-------- .../Default suite/methods-alphabetical.html | 4 +- .../old/Default suite/methods.html | 4 +- .../test-output/old/Default suite/toc.html | 4 +- DemoApp/test-output/old/index.html | 6 +- DemoApp/test-output/testng-results.xml | 61 +---------- 16 files changed, 107 insertions(+), 391 deletions(-) diff --git a/DemoApp/src/test/java/com/demo/tests/BaseTest.java b/DemoApp/src/test/java/com/demo/tests/BaseTest.java index 1d0ee16..490110b 100644 --- a/DemoApp/src/test/java/com/demo/tests/BaseTest.java +++ b/DemoApp/src/test/java/com/demo/tests/BaseTest.java @@ -5,8 +5,10 @@ import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; +import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.Platform; import org.openqa.selenium.WebDriver; +import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.interactions.Actions; @@ -32,6 +34,7 @@ public WebDriver launchBrowser() { capabilities.setPlatform(Platform.WINDOWS); capabilities.setCapability("marionette", true); driver = new FirefoxDriver(capabilities); + driver.manage().deleteAllCookies(); driver.get(Url); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS); @@ -68,7 +71,7 @@ public void elementPresence(By by, long seconds) { } // this method will quite the browser instance after executing the script. - //@AfterTest + @AfterTest public void tearDown() { getDriver().quit(); } @@ -102,5 +105,17 @@ public String getCurrentDate(){ } + public void scrollIntoElement(By id){ + + WebElement element = driver.findElement(id); + JavascriptExecutor js = (JavascriptExecutor) getDriver(); + js.executeScript("arguments[0].scrollIntoView(true);",element); + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } } diff --git a/DemoApp/src/test/java/com/demo/tests/DemoTest.java b/DemoApp/src/test/java/com/demo/tests/DemoTest.java index f72b86e..52418db 100644 --- a/DemoApp/src/test/java/com/demo/tests/DemoTest.java +++ b/DemoApp/src/test/java/com/demo/tests/DemoTest.java @@ -3,8 +3,6 @@ import java.util.ArrayList; import java.util.Collections; - -import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; @@ -14,45 +12,62 @@ public class DemoTest extends BaseTest{ HomePage homePage; - + + //launching the browser with emirates url @BeforeClass public void setUp(){ launchBrowser(); homePage = new HomePage(getDriver()); } + @Test - public void test(){ + public void test() throws InterruptedException{ + // waiting for the emirates home page should display and entering the departure airport elementPresence(homePage.departureAirportTxt,40); safeType(homePage.departureAirportTxt,"DXB"); safeClick(homePage.departureAirportList); - + // Entering the arrival airport elementPresence(homePage.arrivalAirportTxt,40); safeType(homePage.arrivalAirportTxt,"LHR"); safeClick(homePage.arrivalAirportList); + // clicking on the data picker text box for selecting the particular travel date + safeClick(homePage.datePicker); - //safeClick(homePage.continueBtn); + // clicking on the particular travel date from the calender and its parameterized enter any date which one needs to travel + scrollIntoElement(homePage.selectTravelDate("13 May 18")); + safeClick(homePage.selectTravelDate("13 May 18")); + Thread.sleep(1000); - safeClick(homePage.datePicker); + //clicking on the particular retunr travel date from the calender and its parameterized enter any date which one needs to travel + scrollIntoElement(homePage.selectReturnDate("20 May 18")); + safeClick(homePage.selectReturnDate("20 May 18")); + Thread.sleep(1000); - getActions().moveToElement(getDriver().findElement(homePage.selectTravelDate)).click().build().perform(); + // clicking on into the Search button + scrollIntoElement(homePage.searchFlightsBtn); + safeClick(homePage.searchFlightsBtn); - getActions().moveToElement(getDriver().findElement(homePage.selectReturnDate)).click().build().perform(); - - getActions().moveToElement(getDriver().findElement(homePage.searchFlightsBtn)).click().build().perform(); + // waiting for the flights searcg results should display + elementPresence(homePage.searchResultList,40); + scrollIntoElement(homePage.searchResultList); - ArrayList price = (ArrayList) getDriver().findElements(By.xpath("//div[@class='ts-fbr-option__price-detail']/strong[@class='ts-fbr-option__price']")); + // getting all the price into the Array list + ArrayList price = (ArrayList) getDriver().findElements(homePage.searchResultList); + System.out.println("the web elements are ::"+price); + + // getting the price from the search result page and adding into the array list ArrayList priceLst = new ArrayList(); for(int i=0;i`jP8BC= z`BcC?P!JUf_$?CB!bV!eQM424R_6{a2r z66X%w$qP+BV+-zaWBpIQk=@daNNw=cO{&=v4|y=A_Tztk(&$-a<)@2F_0;RytZjGp>XX_M?~2>Am> z{J_xL8K`Yg{DLzJX6JXEp6-zwvqFIeIlI`5Q}{{3&-jHQPF4@g6>21gi?i(i1XDco zoUO_87s{?sakf3&p*|$LOPgG>dT}JCRjQky%GjeKJ5Bj4o+52G>%^Vnj zd0}K>DYB7FM^d7&XiTM*gdjp_07-$xNT+uk?LHU-Uu9{uEQuhaDuOHQIlHjDCbu0c zcBl;g4~uH7{0|x#5GY?h(XbJgLZUF3fDgfN45d%luyYVsbt0bFiMW|JC-x5)t6mae z2lO#7hO2OOjLjHgqu8v(U{y^{8?J4~^*gYd1YO-FsHo~P3JDl}PCRR8yqj@LES`t5 zDBYgE3oSJ{+ruc!YzH5qOV{N_aC;l>s%j-`v`q2P(!3P$7)RX3tC4dE51o!hR%Z9% zeidOl9w6;C`1kzj4RzsD^e5%wrUAI@~9yCIquJ7ufXeZC1D0Ar}Fpoeu(H&t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drt4#YW`CgkUG?GGd&DavI6`m@c|ZS;{EZX0gvSC0HJ# z=L87o6YvZ-0fKuMuajRI&W^>Lg?030H3iM}c`y%5GrHDSD3+mAPG#UZ>C!UwT; zU5V+F5Iz%?=G60GANKSfD5FegmyoYO;6`P5sC&s;}?35BYOk=yZkCCG>J9%O;QYKqQ&o$@)!2B BU`hZ0 diff --git a/DemoApp/target/test-classes/com/demo/tests/DemoTest.class b/DemoApp/target/test-classes/com/demo/tests/DemoTest.class index 98db35d6610bfb7bcf2f2545d882ae1cf5c3f732..4b808bdfe9856e34a669791921a5562a0f598cfd 100644 GIT binary patch literal 3139 zcmai0*>@Y&8UI~N$vE;&LWGy3WKlw(vg07qPy&`?@RG$;Hg0Sj5=zstbZt#Cno(v( ziJh+Or5i0vTcD+-6auvDK~6{yhttRY0X+Auedr^n=kP-MyQ7g65&Ja98Qpuo@BY61 z`|dx!_~>H*d+|2|EdpJ6x0ETUlA8&XANZLOE~mIM5Wki=G?q# zPn({l_t9ZIC|bV2rclT-dQ#FVUj_G-$#bOQ1Xf8+TfRkrLC0|eGq7BT_jl%8Z!R>^ znah|BN@hsSx}F-gP2bNZKx-sA&?&IiHY-lPIOMr!edP&kPj`n9Zdo~}&5W;Xz zNC_kk%;!}(w9mj!fvqRaGiJs%Y2c_6D9@{u165dJ64TFuwFqNjbrUr+nq)8Q;yzn@NCs zx~E&Qhp94h|B%MmD{&jX&MfoISv9p#=H=ZhUd}b_o(w$8nagT-bzz^x9om@oFB_Ay z{6I_TlgOf-VwC$mdsC?~b0M|o4xJz0kjP<7;5wac`C!U3&nSC@R|I;~ z%b2}Ve6+FmN=#^DH~4wawQXjId!QDeD0;DfCoqL+1NTv2!=+P2PniXYqqtvJnynNo zEuLn?v?0eO9?*tF8Xi&18AofVi4RJAJ0hB1zIf2K=8Azo6gZmr9SQR);t}On>_Gdc z4S6U71?HDx+R<;_Hyx^)*SN^3pmIAYL?lG=q6T1L)yJFCz&bP?yHWP z6kv}l<9ia{#}8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c>Tdt zjV{bK3nJt2s%g)2VIIYOhLbONmFqSy74>D|Sf%3ZmSr2JBjX`MS5x&6mawd#3mJyv zvD9I5a&Xm0tSWef#|$mJQZY*gLp+wMHDjCTe`_aYtTV8vj1Btae8ndUHu01}7UhFB z8MWxNZMpNe+hnw0^9k<`n8cMiJc9aGST8JP`tc|Ya1iEn!rx2s5CU6E5@kYv5ug`{e8ke4`rtj%L%Uc}*L;&D svx^)xwK)8iFbC~~8ma@NaGuH#^ML=aN(7u#SvLVBDkPI-C^YECAD=?SjsO4v delta 410 zcmZvYJ5K^Z6ot<&V0a8*HpXZSvWN+05SIlXh$2tl&}pG)F)A@6_*yq4R{jASGQYyo zf&?jSP5djy&e}M$or%qzbIyD-bLW1CUIYG*pWz#TEb2Y~Q}6lAe_*k0t5aiki>t~P zKUYt9MU6$mWy@-JSx0AW>-NU7eNd1j@Wbmxihrs{K7$}2oyi-nJ71Q7NVmk_U9(q` zULgp|WL3emVX$WDg4rx}Z(Hr_%R<7;>Ux7c=w>c)D(N+XkfaO$(wX#Mx=0X~bXh^v z;6?XLph_?bue@oKcieS8^mG-4n{DSfEC4ihjjg*+mtilmMh4#jMa1;33r Y1fq(AP3&M-tWtR}B05#DC!C7?Up`4r5dZ)H diff --git a/DemoApp/test-output/Default suite/Default test.html b/DemoApp/test-output/Default suite/Default test.html index 153827f..c210b29 100644 --- a/DemoApp/test-output/Default suite/Default test.html +++ b/DemoApp/test-output/Default suite/Default test.html @@ -55,11 +55,11 @@

Default test

- + - + - + @@ -67,8 +67,8 @@

Default test

Tests passed/Failed/Skipped:0/1/0Tests passed/Failed/Skipped:1/0/0
Started on:Sun May 06 16:36:06 IST 2018Started on:Sun May 06 18:54:06 IST 2018
Total time:67 seconds (67293 ms)
Total time:46 seconds (46792 ms)
Included groups:

(Hover the method name to see the test class name)

- - +
FAILED TESTS
+ @@ -76,95 +76,8 @@

Default test

PASSED TESTS
Test method Exception Time (seconds)
- - + +
test
Test class: com.demo.tests.DemoTest
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.name: search-flight-date-picker--depart (tried for 30 second(s) with 500 milliseconds interval)
-	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:81)
-	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:271)
-	at com.demo.tests.BaseTest.safeClick(BaseTest.java:85)
-	at com.demo.tests.DemoTest.test(DemoTest.java:34)
-	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
-	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-	at java.lang.reflect.Method.invoke(Unknown Source)
-	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
-	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
-	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
-	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
-	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
-	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
-	at org.testng.TestRunner.privateRun(TestRunner.java:648)
-	at org.testng.TestRunner.run(TestRunner.java:505)
-	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
-	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
-	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
-	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
-	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
-	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
-	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
-	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
-	at org.testng.TestNG.runSuites(TestNG.java:1049)
-	at org.testng.TestNG.run(TestNG.java:1017)
-	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
-	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
-	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
-Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.name: search-flight-date-picker--depart
-For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: 'DELL', ip: '192.168.56.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121'
-Driver info: driver.version: unknown
-	at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:896)
-	at java.util.Optional.orElseThrow(Unknown Source)
-	at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:895)
-	at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:44)
-	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:206)
-	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:202)
-	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:248)
-	... 27 more
-
Click to show all stack frames -
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.name: search-flight-date-picker--depart (tried for 30 second(s) with 500 milliseconds interval)
-	at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:81)
-	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:271)
-	at com.demo.tests.BaseTest.safeClick(BaseTest.java:85)
-	at com.demo.tests.DemoTest.test(DemoTest.java:34)
-	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
-	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-	at java.lang.reflect.Method.invoke(Unknown Source)
-	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
-	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
-	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
-	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
-	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
-	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
-	at org.testng.TestRunner.privateRun(TestRunner.java:648)
-	at org.testng.TestRunner.run(TestRunner.java:505)
-	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
-	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
-	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
-	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
-	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
-	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
-	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
-	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
-	at org.testng.TestNG.runSuites(TestNG.java:1049)
-	at org.testng.TestNG.run(TestNG.java:1017)
-	at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132)
-	at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230)
-	at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76)
-Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.name: search-flight-date-picker--depart
-For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: 'DELL', ip: '192.168.56.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121'
-Driver info: driver.version: unknown
-	at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:896)
-	at java.util.Optional.orElseThrow(Unknown Source)
-	at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:895)
-	at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:44)
-	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:206)
-	at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:202)
-	at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:248)
-	... 27 more
-
4424 com.demo.tests.DemoTest@66d1af89

diff --git a/DemoApp/test-output/Default suite/Default test.xml b/DemoApp/test-output/Default suite/Default test.xml index bc46ea2..c1654cf 100644 --- a/DemoApp/test-output/Default suite/Default test.xml +++ b/DemoApp/test-output/Default suite/Default test.xml @@ -1,52 +1,5 @@ - - - - - - + + diff --git a/DemoApp/test-output/emailable-report.html b/DemoApp/test-output/emailable-report.html index a47ffd2..269921d 100644 --- a/DemoApp/test-output/emailable-report.html +++ b/DemoApp/test-output/emailable-report.html @@ -9,53 +9,10 @@ - +
Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
Default suite
Default test00167,293
Default test10046,792
- +
ClassMethodStartTime (ms)
Default suite
Default test — failed
com.demo.tests.DemoTesttest152560478900944541
ClassMethodStartTime (ms)
Default suite
Default test — passed
com.demo.tests.DemoTesttest152561306911824588
-

Default test

com.demo.tests.DemoTest#test

Exception
org.openqa.selenium.TimeoutException: Expected condition failed: waiting for visibility of element located by By.name: search-flight-date-picker--depart (tried for 30 second(s) with 500 milliseconds interval) - at org.openqa.selenium.support.ui.WebDriverWait.timeoutException(WebDriverWait.java:81) - at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:271) - at com.demo.tests.BaseTest.safeClick(BaseTest.java:85) - at com.demo.tests.DemoTest.test(DemoTest.java:34) - at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) - at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) - at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) - at java.lang.reflect.Method.invoke(Unknown Source) - at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124) - at org.testng.internal.Invoker.invokeMethod(Invoker.java:583) - at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719) - at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989) - at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125) - at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109) - at org.testng.TestRunner.privateRun(TestRunner.java:648) - at org.testng.TestRunner.run(TestRunner.java:505) - at org.testng.SuiteRunner.runTest(SuiteRunner.java:455) - at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450) - at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415) - at org.testng.SuiteRunner.run(SuiteRunner.java:364) - at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52) - at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84) - at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208) - at org.testng.TestNG.runSuitesLocally(TestNG.java:1137) - at org.testng.TestNG.runSuites(TestNG.java:1049) - at org.testng.TestNG.run(TestNG.java:1017) - at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:132) - at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:230) - at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:76) -Caused by: org.openqa.selenium.NoSuchElementException: Cannot locate an element using By.name: search-flight-date-picker--depart -For documentation on this error, please visit: http://seleniumhq.org/exceptions/no_such_element.html -Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z' -System info: host: 'DELL', ip: '192.168.56.1', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3', java.version: '1.8.0_121' -Driver info: driver.version: unknown - at org.openqa.selenium.support.ui.ExpectedConditions.lambda$findElement$0(ExpectedConditions.java:896) - at java.util.Optional.orElseThrow(Unknown Source) - at org.openqa.selenium.support.ui.ExpectedConditions.findElement(ExpectedConditions.java:895) - at org.openqa.selenium.support.ui.ExpectedConditions.access$000(ExpectedConditions.java:44) - at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:206) - at org.openqa.selenium.support.ui.ExpectedConditions$7.apply(ExpectedConditions.java:202) - at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:248) - ... 27 more -

back to summary

+

Default test

com.demo.tests.DemoTest#test

back to summary

diff --git a/DemoApp/test-output/index.html b/DemoApp/test-output/index.html index 08f7450..cda323a 100644 --- a/DemoApp/test-output/index.html +++ b/DemoApp/test-output/index.html @@ -24,7 +24,7 @@
Test results
- 1 suite, 1 failed test + 1 suite