-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9eaee4
commit 01e8eed
Showing
2 changed files
with
148 additions
and
6 deletions.
There are no files selected for viewing
69 changes: 65 additions & 4 deletions
69
backend/selenium_tests/page_object/registration_data_import/rdi_details_page.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,69 @@ | ||
from page_object.base_components import BaseComponents | ||
from selenium.webdriver.remote.webelement import WebElement | ||
|
||
|
||
class RDIDetailsPage(BaseComponents): | ||
pass | ||
# Locators | ||
# Texts | ||
# Elements | ||
mainContent = 'div[data-cy="main-content"]' | ||
pageHeaderContainer = 'div[data-cy="page-header-container"]' | ||
pageHeaderTitle = 'h5[data-cy="page-header-title"]' | ||
labelStatus = 'div[data-cy="label-status"]' | ||
statusContainer = 'div[data-cy="status-container"]' | ||
labelSourceOfData = 'div[data-cy="label-Source of Data"]' | ||
labelImportDate = 'div[data-cy="label-Import Date"]' | ||
labelImportedBy = 'div[data-cy="label-Imported by"]' | ||
labelizedFieldContainerHouseholds = 'div[data-cy="labelized-field-container-households"]' | ||
labelTotalNumberOfHouseholds = 'div[data-cy="label-Total Number of Households"]' | ||
labelizedFieldContainerIndividuals = 'div[data-cy="labelized-field-container-individuals"]' | ||
labelTotalNumberOfIndividuals = 'div[data-cy="label-Total Number of Individuals"]' | ||
tableLabel = 'span[data-cy="table-label"]' | ||
tablePagination = 'div[data-cy="table-pagination"]' | ||
importedIndividualsTable = 'div[data-cy="imported-individuals-table"]' | ||
tableRow = 'tr[data-cy="table-row"]' | ||
|
||
def getMainContent(self) -> WebElement: | ||
return self.wait_for(self.mainContent) | ||
|
||
def getPageHeaderContainer(self) -> WebElement: | ||
return self.wait_for(self.pageHeaderContainer) | ||
|
||
def getPageHeaderTitle(self) -> WebElement: | ||
return self.wait_for(self.pageHeaderTitle) | ||
|
||
def getLabelStatus(self) -> WebElement: | ||
return self.wait_for(self.labelStatus) | ||
|
||
def getStatusContainer(self) -> WebElement: | ||
return self.wait_for(self.statusContainer) | ||
|
||
def getLabelSourceOfData(self) -> WebElement: | ||
return self.wait_for(self.labelSourceOfData) | ||
|
||
def getLabelImportDate(self) -> WebElement: | ||
return self.wait_for(self.labelImportDate) | ||
|
||
def getLabelImportedBy(self) -> WebElement: | ||
return self.wait_for(self.labelImportedBy) | ||
|
||
def getLabelizedFieldContainerHouseholds(self) -> WebElement: | ||
return self.wait_for(self.labelizedFieldContainerHouseholds) | ||
|
||
def getLabelTotalNumberOfHouseholds(self) -> WebElement: | ||
return self.wait_for(self.labelTotalNumberOfHouseholds) | ||
|
||
def getLabelizedFieldContainerIndividuals(self) -> WebElement: | ||
return self.wait_for(self.labelizedFieldContainerIndividuals) | ||
|
||
def getLabelTotalNumberOfIndividuals(self) -> WebElement: | ||
return self.wait_for(self.labelTotalNumberOfIndividuals) | ||
|
||
def getTableLabel(self) -> WebElement: | ||
return self.wait_for(self.tableLabel) | ||
|
||
def getTableRow(self) -> WebElement: | ||
return self.wait_for(self.tableRow) | ||
|
||
def getTablePagination(self) -> WebElement: | ||
return self.wait_for(self.tablePagination) | ||
|
||
def getImportedIndividualsTable(self) -> WebElement: | ||
return self.wait_for(self.importedIndividualsTable) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters