コード例 #1
0
 def tag_tree(self):
     from pages.regions.tree import Tree
     #the_tree = Tree(self.testsetup, *self._tag_tree_locator)
     tree_element = self.get_element(*self._tag_tree_locator)
     the_tree = Tree(self.testsetup, tree_element)
     the_tree._main_tree_item_locator = self._tag_tree_locator
     return the_tree
コード例 #2
0
    def tag_tree(self):
        from pages.regions.tree import Tree

        the_tree = Tree(self.testsetup, *self._tag_tree_locator)
        the_tree._main_tree_item_locator = self._tag_tree_locator
        return the_tree
コード例 #3
0
 def content(self):
     accordion_content = AccordionItem.content.fget(self)
     # Now, we need the *actual* tree root
     tree_root = accordion_content.find_element_by_xpath('div/div/ul/li')
     return Tree(self.testsetup, tree_root)
コード例 #4
0
 def tag_tree(self):
     from pages.regions.tree import Tree
     the_tree = Tree(self.testsetup, *self._tag_tree_locator)
     the_tree._main_tree_item_locator = self._tag_tree_locator
     return the_tree
コード例 #5
0
 def content(self):        
     return Tree(self.testsetup,AccordionItem.content.fget(self)) #@UndefinedVariable