Exemplo n.º 1
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()
Exemplo n.º 2
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()
Exemplo n.º 3
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"]
Exemplo n.º 4
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']