______________________________________ TestCatalogs.test_create_catalog_bundle _______________________________________

self = <test_catalog.TestCatalogs instance at 0x55f18c0>
mozwebqa = <pytest_mozwebqa.pytest_mozwebqa.TestSetup instance at 0x55f1ef0>
home_page_logged_in = <pages.dashboard.DashboardPage object at 0x53557d0>

    def test_create_catalog_bundle(self, mozwebqa, home_page_logged_in):
        bun_pg = home_page_logged_in.header.site_navigation_menu("Services").sub_navigation_menu("Catalogs").click()
        Assert.true(bun_pg.is_the_current_page)
        new_bundle_pg = bun_pg.click_on_catalog_item_accordion().add_new_catalog_bundle()
>       new_bundle_pg.fill_bundle_basic_info(self.catalog_bundle_name, self.catalog_bundle_desc,self.catalog_name,self.service_dialog_name, "2")

tests/ui/services/test_catalog.py:56: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pages.services_subpages.catalog_subpages.catalog_items.NewCatalogBundle object at 0x54ce390>
name = 'auto_bundle_name', desc = 'bundle_desc', catalog = 'auto_catalog', dialog = 'auto_catalog_dialog', cost = '2'

    def fill_bundle_basic_info(self, name, desc, catalog,dialog,cost):
        self.selenium.find_element(*self._bundledisplay_checkbox).click()
        self._wait_for_results_refresh()
        self.selenium.find_element(*self._bundlename_field).send_keys(name)
        self.selenium.find_element(*self._bundledesc_field).send_keys(desc)
>       self.select_dropdown(catalog, *self._bundle_select_catalog)

../cfme_pages/pages/services_subpages/catalog_subpages/catalog_items.py:143: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pages.services_subpages.catalog_subpages.catalog_items.NewCatalogBundle object at 0x54ce390>
value = 'auto_catalog', element = ('css selector', 'select#catalog_id')
select = <selenium.webdriver.support.select.Select instance at 0x55f3b48>

    def select_dropdown(self, value, *element):
        select = Select(self.selenium.find_element(*element))
>       select.select_by_visible_text(value)

../cfme_pages/pages/page.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <selenium.webdriver.support.select.Select instance at 0x55f3b48>, text = 'auto_catalog'

    def select_by_visible_text(self, text):
        """Select all options that display text matching the argument. That is, when given "Bar" this
               would select an option like:
    
                <option value="foo">Bar</option>
    
               :Args:
                - text - The visible text to match against
               """
        xpath = ".//option[normalize-space(.) = %s]" % self._escapeString(text)
        opts = self._el.find_elements(By.XPATH, xpath)
        matched = False
        for opt in opts:
            self._setSelected(opt)
            if not self.is_multiple:
                return
            matched = True
    
        if len(opts) == 0 and " " in text:
            subStringWithoutSpace = self._get_longest_token(text)
            if subStringWithoutSpace == "":
                # seems weird to me that the java impl just selects the first or all if multiple
                # oh well... doing it here too.
                candidates = self.options
            else:
                xpath = ".//option[contains(.,%s)]" % self._escapeString(subStringWithoutSpace)
                candidates = self._el.find_elements(By.XPATH, xpath)
            for candidate in candidates:
                self._setSelected(candidate)
                if not self.is_multiple:
                    return
                matched = True
    
        if matched != True:
>           raise NoSuchElementException("Could not locate element with visible text: %s" % text)
E           NoSuchElementException: Message: 'Could not locate element with visible text: auto_catalog'

../../python_envs/miq/lib/python2.7/site-packages/selenium/webdriver/support/select.py:136: NoSuchElementException