mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-24 00:42:17 +00:00
Init other tests, more rigs test faffery
This commit is contained in:
@@ -58,6 +58,8 @@ class CreateEvent(FormPage):
|
||||
_venue_selector_selector = (By.XPATH, '//*[@id="main"]/form/div/div[3]/div[1]/div[2]/div[1]/div/div/div[1]/div')
|
||||
_mic_selector_selector = (By.XPATH, '//*[@id="form-hws"]/div[7]/div[1]/div/div')
|
||||
|
||||
_add_person_selector = (By.XPATH, '//a[@data-target="#id_person" and contains(@href, "add")]')
|
||||
|
||||
form_items = {
|
||||
'description': (regions.TextBox, (By.ID, 'id_description')),
|
||||
|
||||
@@ -95,6 +97,10 @@ class CreateEvent(FormPage):
|
||||
def mic_selector(self):
|
||||
return regions.BootstrapSelectElement(self, self.find_element(*self._mic_selector_selector))
|
||||
|
||||
def add_person(self):
|
||||
self.find_element(*self._add_person_selector).click()
|
||||
return regions.Modal(self, self.driver.find_element_by_id('modal'))
|
||||
|
||||
@property
|
||||
def success(self):
|
||||
return '/create' not in self.driver.current_url
|
||||
|
||||
Reference in New Issue
Block a user