Example #1
0
    def wait_for_input_with_title_disappear(self, title):
        input_frame = self.find_it(UI.get_monako_quick_input_locator())
        input_element = self.find_it(UI.get_monako_input_locator(), parent=input_frame)

        visible = str2bool(input_element.get_attribute(constants.ARIA_HAS_POPUP))

        if visible and input_element.get_attribute(constants.ELEMENT_TITLE) == title:
            raise WebDriverException
Example #2
0
    def get_input_element(self):
        input_frame = self.find_it(UI.get_monako_quick_input_locator())
        input_element = self.find_it(UI.get_monako_input_locator(), parent=input_frame)
        visible = str2bool(input_element.get_attribute(constants.ARIA_HAS_POPUP))

        if not visible:
            raise WebDriverException

        highlight(input_element)
        self.click_me(input_element)
        return input_element