Slightly more testing

This commit is contained in:
2022-01-08 17:36:28 +00:00
parent f15cfa8fce
commit b9ee6abebd
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
from django.urls import reverse
from pypom import Region
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from PyRIGS.tests import regions
from PyRIGS.tests.pages import BasePage, FormPage
class TraineeDetail(BasePage):
URL_TEMPLATE = 'trainee/{pk}'
_name_selector = (By.XPATH, '//h2')
@property
def page_name(self):
return self.find_element(*self._name_selector).text