Search in sources :

Example 16 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method anonSearch.

@Test(groups = { "anonSearch", "Search", "Search1" })
public void anonSearch() {
    WikiBasePageObject base = new WikiBasePageObject();
    base.openWikiPage(testedWiki);
    NavigationBar navigation = new NavigationBar(driver);
    IntraWikiSearchPageObject search = navigation.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
    search.verifyFirstArticleNameTheSame(SearchContent.SEARCH_PHRASE_RESULTS);
}
Also used : NavigationBar(com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar) IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) WikiBasePageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject) Test(org.testng.annotations.Test)

Example 17 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method selectImagesOrVideos.

@Test(groups = { "IntraWikiSearch_010", "Search", "Search2" })
@RelatedIssue(issueID = "MAIN-7142", comment = "Product code defect. No need to test manually")
public void selectImagesOrVideos() {
    IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
    search.openWikiPage(testedWiki);
    search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
    search.selectPhotosVideos();
    search.selectPhotosOnly();
    search.verifyPhotosOnly();
    search.selectVideosOnly();
    search.verifyVideosOnly();
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test) RelatedIssue(com.wikia.webdriver.common.core.annotations.RelatedIssue)

Example 18 with IntraWikiSearchPageObject

use of com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject in project selenium-tests by Wikia.

the class BasicActions method languageTranslation.

@Test(groups = { "IntraWikiSearch_009", "Search", "Search1" })
public void languageTranslation() {
    IntraWikiSearchPageObject search = new IntraWikiSearchPageObject(driver);
    search.openWikiPage(testedWiki);
    search.searchFor(SearchContent.SEARCH_PHRASE_RESULTS);
    search.addQqxUselang();
    search.verifyLanguageTranslation();
}
Also used : IntraWikiSearchPageObject(com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject) Test(org.testng.annotations.Test)

Aggregations

IntraWikiSearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.search.intrawikisearch.IntraWikiSearchPageObject)18 Test (org.testng.annotations.Test)18 RelatedIssue (com.wikia.webdriver.common.core.annotations.RelatedIssue)7 NavigationBar (com.wikia.webdriver.pageobjectsfactory.componentobject.global_navitagtion.NavigationBar)2 WikiBasePageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.WikiBasePageObject)2 Execute (com.wikia.webdriver.common.core.annotations.Execute)1 SearchPageObject (com.wikia.webdriver.pageobjectsfactory.pageobject.SearchPageObject)1