예제 #1
0
    def __init__(self, parent=None):
        self.applyButton = Button(
            xpath=".//button[contains(@class, 'btn-apply')]",
            element_name="Apply")
        self.cancelButton = Button(
            xpath=".//button[contains(@class, 'btn-discard')]",
            element_name="Cancel")

        BasePage.__init__(self, parent)
예제 #2
0
    def __init__(self, parent=None):
        self.applyButton = Button(
            xpath=".//button[contains(@class, 'btn-apply')]",
            element_name="Apply"
        )
        self.cancelButton = Button(
            xpath=".//button[contains(@class, 'btn-discard')]",
            element_name="Cancel"
        )

        BasePage.__init__(self, parent)
예제 #3
0
    def __init__(self, parent=None):
        self.name = HtmlElement(xpath=".//div[@class='volume-group-name']",
                                element_name="name")

        self.size = HtmlElement(xpath=".//div[@class='volume-group-size']",
                                element_name="name")

        self.close = Link(xpath=".//div[@class='close-btn']",
                          element_name="close")

        BasePage.__init__(self, parent)
예제 #4
0
 def __init__(self, table):
     self.rows = [
         HtmlElement(element=element)
         for element in self.get_action_bot().find_elements(
             by=By.XPATH, value="./tbody/tr", parent=table
         )
     ]
     self.cell = HtmlElement(
         xpath="./tbody/tr[{row}]/td[{column}]",
         element_name="cell"
     )
     BasePage.__init__(self, parent=table)
예제 #5
0
    def __init__(self, parent=None):
        self.name = HtmlElement(xpath=".//div[@class='volume-group-box-name']",
                                element_name="name")

        self.size = Input(
            xpath=".//div[@class='volume-group-box-input']/input",
            element_name="size")

        self.use_all_unallocated = Link(
            xpath=".//div[@class='use-all-unallocated']",
            element_name="Use all unallocated")

        BasePage.__init__(self, parent)
예제 #6
0
    def __init__(self, parent=None):
        self.name = HtmlElement(
            xpath=".//div[@class='volume-group-name']",
            element_name="name")

        self.size = HtmlElement(
            xpath=".//div[@class='volume-group-size']",
            element_name="name")

        self.close = Link(
            xpath=".//div[@class='close-btn']",
            element_name="close")

        BasePage.__init__(self, parent)
예제 #7
0
    def __init__(self, parent=None):
        self.name = HtmlElement(
            xpath=".//div[@class='volume-group-box-name']",
            element_name="name")

        self.size = Input(
            xpath=".//div[@class='volume-group-box-input']/input",
            element_name="size")

        self.use_all_unallocated = Link(
            xpath=".//div[@class='use-all-unallocated']",
            element_name="Use all unallocated")

        BasePage.__init__(self, parent)
예제 #8
0
    def __init__(self, parent=None):
        self.ip_range_start = Input(xpath=".//input[@name='ip_ranges-start']",
                                    element_name="Ip range start")

        self.ip_range_end = Input(xpath=".//input[@name='ip_ranges-end']",
                                  element_name="Ip range end")

        self.ip_range_add = Button(
            xpath=".//button[contains(@class,'ip-ranges-add')]",
            element_name="Ip range add")

        self.ip_range_delete = Button(
            xpath=".//button[contains(@class,'ip-ranges-delete')]",
            element_name="Ip range delete")

        BasePage.__init__(self, parent)
    def __init__(self, parent=None):
        self.ip_range_start = Input(
            xpath=".//input[@name='ip_ranges-start']",
            element_name="Ip range start")

        self.ip_range_end = Input(
            xpath=".//input[@name='ip_ranges-end']",
            element_name="Ip range end")

        self.ip_range_add = Button(
            xpath=".//button[contains(@class,'ip-ranges-add')]",
            element_name="Ip range add")

        self.ip_range_delete = Button(
            xpath=".//button[contains(@class,'ip-ranges-delete')]",
            element_name="Ip range delete")

        BasePage.__init__(self, parent)
예제 #10
0
    def __init__(self, parent=None):
        self.caption = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-name')]",
            element_name="Caption")

        self.total_space = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-size')]",
            element_name="Total space")

        self.bootable_marker = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-name')]/span",
            element_name="Disk's bootable marker")

        self.volume_group = HtmlElement(
            xpath=".//div[contains(@class,'volume-group') and "
                  ".//div[@class='volume-group-name']='{name}']",
            element_name="Volume group {name}")

        self.disk_parameter = HtmlElement(
            xpath=".//div[contains(@class,'disk-map-details-item')]",
            element_name="Disk parameter {name}")

        self.disk_map_details = HtmlElement(
            xpath=".//div[contains(@class,'disk-map-details-item') and "
                  "div[@class='disk-map-details-name']='{name}']/"
                  "div[@class='disk-map-details-parameter']",
            element_name="Disk parameter {name}")

        self.volume_group_box = HtmlElement(
            xpath=".//div[contains(@class,'volume-group-box') and "
                  "div[@class='volume-group-box-name']='{name}']",
            element_name="Volume group box {name}")

        self.make_bootable = Button(
            xpath=".//button[text()='Make Bootable']",
            element_name="Make Bootable")

        self.disk_map = HtmlElement(
            xpath=".//div[@class='disk-map-short disk-map-full']",
            element_name="Disk map")

        BasePage.__init__(self, parent)
예제 #11
0
    def __init__(self, parent=None):
        self.caption = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-name')]",
            element_name="Caption")

        self.total_space = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-size')]",
            element_name="Total space")

        self.bootable_marker = HtmlElement(
            xpath=".//div[contains(@class,'disk-box-name')]/span",
            element_name="Disk's bootable marker")

        self.volume_group = HtmlElement(
            xpath=".//div[contains(@class,'volume-group') and "
            ".//div[@class='volume-group-name']='{name}']",
            element_name="Volume group {name}")

        self.disk_parameter = HtmlElement(
            xpath=".//div[contains(@class,'disk-map-details-item')]",
            element_name="Disk parameter {name}")

        self.disk_map_details = HtmlElement(
            xpath=".//div[contains(@class,'disk-map-details-item') and "
            "div[@class='disk-map-details-name']='{name}']/"
            "div[@class='disk-map-details-parameter']",
            element_name="Disk parameter {name}")

        self.volume_group_box = HtmlElement(
            xpath=".//div[contains(@class,'volume-group-box') and "
            "div[@class='volume-group-box-name']='{name}']",
            element_name="Volume group box {name}")

        self.make_bootable = Button(xpath=".//button[text()='Make Bootable']",
                                    element_name="Make Bootable")

        self.disk_map = HtmlElement(
            xpath=".//div[@class='disk-map-short disk-map-full']",
            element_name="Disk map")

        BasePage.__init__(self, parent)