class TicketReviewPage(ProjectLayout): """ Single ticket view """ def __init__(self): super(TicketReviewPage, self).__init__() self.modify = Link(self._browser, **self.selector("modify")) self.submit = PageElement(self._browser, **self.selector("submit")) # Elements that are hidden/non-existing at first self.cc_block = None self.cc_field = None self.cc_button = None def activate_modify(self): self.modify.click() self.cc_block = TextInput(self._browser, **self.selector("cc_block")) self.cc_button = PageElement(self._browser, **self.selector("cc_button")) def set_cc(self, value): # Input field is hidden until block is clicked self.cc_field = TextInput(self._browser, **self.selector("cc_input")) self.cc_field.value = value self.cc_button.click()
class TicketReviewPage(ProjectLayout): """ Single ticket view """ def __init__(self): super(TicketReviewPage, self).__init__() self.modify = Link(self._browser, **self.selector('modify')) self.submit = PageElement(self._browser, **self.selector('submit')) # Elements that are hidden/non-existing at first self.cc_block = None self.cc_field = None self.cc_button = None def activate_modify(self): self.modify.click() self.cc_block = TextInput(self._browser, **self.selector('cc_block')) self.cc_button = PageElement(self._browser, **self.selector('cc_button')) def set_cc(self, value): # Input field is hidden until block is clicked self.cc_field = TextInput(self._browser, **self.selector('cc_input')) self.cc_field.value = value self.cc_button.click()
def remove_project(self): button = PageElement(self._browser, 'input[name="remove"]') button.click() # Handle confirmation dialog: first button is Confirmation browser = self._browser browser.find_by_css("span.ui-button-text").first.click()
def remove_project(self): button = PageElement(self._browser, 'input[name="remove"]') button.click() # Handle confirmation dialog: first button is Confirmation browser = self._browser browser.find_by_css('span.ui-button-text').first.click()
def __init__(self): super(EditWikiPage, self).__init__() browser = self._browser self.text = TextInput(browser, 'textarea#text') self.comment = TextInput(browser, 'input#comment') self.preview = PageElement(browser, 'input[name="preview"]') self.review = PageElement(browser, 'input[name="diff"]') self.submit = PageElement(browser, 'input[name="save"]')
def __init__(self): super(NewTicketPage, self).__init__() browser = self._browser self.summary = TextInput(browser, **self.selector('summary')) self.reporter = TextInput(browser, **self.selector('reporter')) self.description = TextInput(browser, **self.selector('description')) self.submit = PageElement(browser, **self.selector('submit'))
def __init__(self): super(CreateProjectPage, self).__init__() browser = self._browser self.name = TextInput(browser, 'input#prj_long_name') self.identifier = TextInput(browser, 'input#prj_short_name') self.description = TextInput(browser, 'textarea#prj_description') self.vcs_type = Select(browser, 'select#vcstype') self.submit = PageElement(browser, 'input#submit_create_form')
def __init__(self): super(TicketReviewPage, self).__init__() self.modify = Link(self._browser, **self.selector('modify')) self.submit = PageElement(self._browser, **self.selector('submit')) # Elements that are hidden/non-existing at first self.cc_block = None self.cc_field = None self.cc_button = None
def __init__(self): super(LoginPage, self).__init__() browser = self._browser self.username = TextInput(browser, 'input#fnloginUsername') self.password = Checkbox(browser, 'input#fnloginPassword') self.submit = PageElement(browser, 'input.blueInputBtn')
def activate_modify(self): self.modify.click() self.cc_block = TextInput(self._browser, **self.selector("cc_block")) self.cc_button = PageElement(self._browser, **self.selector("cc_button"))
def activate_modify(self): self.modify.click() self.cc_block = TextInput(self._browser, **self.selector('cc_block')) self.cc_button = PageElement(self._browser, **self.selector('cc_button'))