def _check_connect_button_state(self, frame, isEnabled):
     driver.select_frame(frame)
     self.dynamicConnectionBtn.arguments = ["Connect"]
     if isEnabled:
         SeleniumAssert.element_attribute_value_should_not_contain(
             self.dynamicConnectionBtn, "src", "Disabled")
     else:
         SeleniumAssert.element_attribute_value_should_contain(
             self.dynamicConnectionBtn, "src", "Disabled")
     driver.unselect_frame()
 def check_work_order_priority_color(self, woName, color):
     self._select_iframe(workOrders.woQueueIframe, self.markCompleteBtn)
     returnRow = self.get_table_row_map_with_header_on_wo_queue_table(
         "Work Order", woName)
     dynamicCellXpath = self.woQueueTbl.locator() + "//tr[" + str(
         returnRow
     ) + "]/td[@aria-describedby='WorkOrderQueueGrid_Priority']/div"
     eleCell = Element(dynamicCellXpath)
     SeleniumAssert.element_attribute_value_should_contain(
         eleCell, "style", color)
     driver.unselect_frame()
Пример #3
0
 def check_port_status_on_cabling_window(self, treePanel=None, treeNode=None, expectedStatus=None):
     driver.select_frame(connection.cablingFrame)
     self._wait_for_processing()
     if treePanel is not None and treeNode is not None:
         if treePanel == "From":
             self._click_tree_node(connection.cabTreeFromDiv, treeNode)
             SeleniumAssert.element_attribute_value_should_contain(connection.cableFromPathDiv, "textContent", expectedStatus)
         elif treePanel == "To":
             self._click_tree_node(connection.cabTreeToDiv, treeNode)
             SeleniumAssert.element_attribute_value_should_contain(connection.cableToPathDiv, "textContent", expectedStatus)
     driver.unselect_frame()
Пример #4
0
 def _check_src_attribute(self, element, expected):
     SeleniumAssert.element_attribute_value_should_contain(
         element, "src", expected)