use of com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject in project selenium-tests by Wikia.
the class Searching method serachGlobalNavigationBarAsLoggedIn.
@Test(groups = { "serachGlobalNavigationBarAsLoggedIn" }, dataProvider = "getDataForGlobalSearch")
@Execute(asUser = User.USER)
public void serachGlobalNavigationBarAsLoggedIn(String wikiName, String query, String expectedSpecialPage) {
HomePage homePage = new HomePage();
homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
SearchPageObject search = homePage.getGlobalNavigation().search(query);
Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
Assertion.assertTrue(search.isResultPresent());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject in project selenium-tests by Wikia.
the class Searching method serachGlobalNavigationBarAsAnon.
@Test(groups = { "serachGlobalNavigationBarAsAnon" }, dataProvider = "getDataForGlobalSearch")
public void serachGlobalNavigationBarAsAnon(String wikiName, String query, String expectedSpecialPage) {
HomePage homePage = new HomePage();
homePage.getUrl(urlBuilder.getUrlForWiki(wikiName));
SearchPageObject search = homePage.getGlobalNavigation().search(query);
Assertion.assertStringContains(driver.getCurrentUrl(), expectedSpecialPage);
Assertion.assertTrue(search.isResultPresent());
}
use of com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject in project selenium-tests by Wikia.
the class BasicActions method namespaces.
@Test(dataProviderClass = IntraWikiSearchProvider.class, dataProvider = "getNamespaces", groups = { "IntraWikiSearch_013", "Search", "Search1" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void namespaces(String searchPhrase, String namespace) {
IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
search.openWikiPage(testedWiki);
search.searchFor(searchPhrase);
search.selectAllAdvancedOptions();
SearchPageObject searchPage = new SearchPageObject(driver);
searchPage.clickSearchButton();
searchPage.setSearchTab(SearchPageObject.SearchTab.EVERYTHING);
search.verifyNamespace(namespace);
}
Aggregations