예제 #1
0
 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'))
예제 #2
0
 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')
예제 #3
0
 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"]')
예제 #4
0
class SearchPage(ProjectLayout):
    def __init__(self):
        super(SearchPage, self).__init__()
        self.input = TextInput(self._browser, "input#searchForProjects")
        self.submit = Submit(self._browser, "button#searchProjectsBtn")
        self.required_texts = ["Select area"]

    def select_area(self, title):
        """
        Find and click the search criteria link based on title

        :param str title: Link title
        """
        browser = self._browser
        arealink = browser.find_link_by_text(title).last
        arealink.click()

    def do_search(self, term):
        self.input.fill(term)
        self.submit.click()
예제 #5
0
class SearchPage(ProjectLayout):
    def __init__(self):
        super(SearchPage, self).__init__()
        self.input = TextInput(self._browser, 'input#searchForProjects')
        self.submit = Submit(self._browser, 'button#searchProjectsBtn')
        self.required_texts = ['Select area']

    def select_area(self, title):
        """
        Find and click the search criteria link based on title

        :param str title: Link title
        """
        browser = self._browser
        arealink = browser.find_link_by_text(title).last
        arealink.click()

    def do_search(self, term):
        self.input.fill(term)
        self.submit.click()
예제 #6
0
 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')
예제 #7
0
 def __init__(self):
     super(SearchPage, self).__init__()
     self.input = TextInput(self._browser, "input#searchForProjects")
     self.submit = Submit(self._browser, "button#searchProjectsBtn")
     self.required_texts = ["Select area"]
예제 #8
0
 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()
예제 #9
0
 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'))
예제 #10
0
 def __init__(self):
     super(SearchPage, self).__init__()
     self.input = TextInput(self._browser, 'input#searchForProjects')
     self.submit = Submit(self._browser, 'button#searchProjectsBtn')
     self.required_texts = ['Select area']