Exemplo n.º 1
0
        def _this_step(step, slowly, text, first, last, find_pattern):
            css = _convert_pattern_to_css(finder_function, first, last, find_pattern)

            driver_ele = world.browser.driver.find_element_by_css_selector(css)
            slowly = False
            if slowly and slowly != "":
                TypeIterator(driver_ele, text)
            else:
                driver_ele.send_keys(text)
Exemplo n.º 2
0
        def _this_step(step, named_or_with_value, field_value, first, last, find_pattern):
            css = _convert_pattern_to_css(finder_function, first, last, find_pattern, tag="select")

            if named_or_with_value == "with the value":
                css += " option[value='%s']" % (field_value,)
                ele = world.browser.find_by_css(css).first
            else:
                ele = world.browser.find_option_by_text(field_value)

            ele.click()
Exemplo n.º 3
0
        def _this_step(step, slowly, text, first, last, find_pattern):
            css = _convert_pattern_to_css(finder_function, first, last,
                                          find_pattern)

            driver_ele = world.browser.driver.find_element_by_css_selector(css)
            slowly = False
            if slowly and slowly != "":
                TypeIterator(driver_ele, text)
            else:
                driver_ele.send_keys(text)
Exemplo n.º 4
0
        def _this_step(step, named_or_with_value, field_value, first, last,
                       find_pattern):
            css = _convert_pattern_to_css(finder_function,
                                          first,
                                          last,
                                          find_pattern,
                                          tag="select")

            if named_or_with_value == "with the value":
                css += " option[value='%s']" % (field_value, )
                ele = world.browser.find_by_css(css).first
            else:
                ele = world.browser.find_option_by_text(field_value)

            ele.click()