@@ -0,0 +1,1104 @@
+package pt.fccn.mobile.arquivo.tests.pagesearch;%0A%0Aimport static org.hamcrest.CoreMatchers.containsString;%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0A%0Aimport org.junit.Test;%0Aimport org.openqa.selenium.By;%0A%0Aimport pt.fccn.arquivo.selenium.Retry;%0Aimport pt.fccn.arquivo.selenium.WebDriverTestBaseParalell;%0A%0A/**%0A *%0A * @author Ivo Branco %3Civo.branco@fccn.pt%3E%0A *%0A */%0Apublic class PageSearchQuerySuggestionTest extends WebDriverTestBaseParalell %7B%0A%0A%09public PageSearchQuerySuggestionTest(String os, String version, String browser, String deviceName,%0A%09%09%09String deviceOrientation) %7B%0A%09%09super(os, version, browser, deviceName, deviceOrientation);%0A%09%7D%0A%0A%09@Test%0A%09@Retry%0A%09public void pageSearchTest() %7B%0A%09%09run(%22Search with testre%22, () -%3E %7B%0A%09%09%09driver.findElement(By.id(%22txtSearch%22)).clear();%0A%09%09%09driver.findElement(By.id(%22txtSearch%22)).sendKeys(%22testre%22);%0A%09%09%09driver.findElement(By.xpath(%22//*%5B@id=%5C%22buttonSearch%5C%22%5D/button%22)).click();%0A%09%09%7D);%0A%0A%09%09assertThat(%22Verify if a suggestion is presented%22,%0A%09%09%09%09driver.findElement(By.xpath(%22//*%5B@id=%5C%22second-column%5C%22%5D/div%5B1%5D/span/a%22)).getText(),%0A%09%09%09%09containsString(%22teste%22));%0A%09%7D%0A%0A%7D%0A

Add new page search query suggestion test