Beispiel #1
0
    def create_version(self, mozwebqa, product):
        create_version_pg = MozTrapCreateVersionPage(mozwebqa)

        create_version_pg.go_to_create_version_page()
        version = create_version_pg.create_version(product_name=product['name'])

        version['product'] = product

        return version
Beispiel #2
0
    def create_version(self, base_url, selenium, product):
        create_version_pg = MozTrapCreateVersionPage(base_url, selenium)

        create_version_pg.go_to_create_version_page()
        version = create_version_pg.create_version(product_name=product['name'])

        version['product'] = product

        return version
Beispiel #3
0
    def create_version(self, mozwebqa, product):
        create_version_pg = MozTrapCreateVersionPage(mozwebqa)

        create_version_pg.go_to_create_version_page()
        version = create_version_pg.create_version(
            product_name=product['name'])

        version['product'] = product

        return version
    def create_version(self, base_url, selenium, product):
        create_version_pg = MozTrapCreateVersionPage(base_url, selenium)

        create_version_pg.go_to_create_version_page()
        version = create_version_pg.create_version(
            product_name=product['name'])

        version['product'] = product

        return version
Beispiel #5
0
    def create_version(self, mozwebqa, product=None):
        create_version_pg = MozTrapCreateVersionPage(mozwebqa)

        if product is None:
            product = self.create_product(mozwebqa)
            version = product['version']
            manage_versions_pg = MozTrapManageVersionsPage(mozwebqa)
            manage_versions_pg.go_to_manage_versions_page()
        else:
            create_version_pg.go_to_create_version_page()
            version = create_version_pg.create_version(product_name=product['name'])

        version['product'] = product

        return version
Beispiel #6
0
    def create_version(self, mozwebqa, product=None):
        create_version_pg = MozTrapCreateVersionPage(mozwebqa)

        if product is None:
            product = self.create_product(mozwebqa)
            version = product['version']
            manage_versions_pg = MozTrapManageVersionsPage(mozwebqa)
            manage_versions_pg.go_to_manage_versions_page()
        else:
            create_version_pg.go_to_create_version_page()
            version = create_version_pg.create_version(product_name=product['name'])

        version['product'] = product

        return version
Beispiel #7
0
 def click_create_version_button(self):
     self.find_element(*self._create_version_button_locator).click()
     from pages.create_version_page import MozTrapCreateVersionPage
     return MozTrapCreateVersionPage(self.testsetup)