Exemplo n.º 1
0
def signoff_and_ship(selenium, base_url, fill_overview):
    """"Fills signoffs and clicks 'Confirm ready to ship' button."""
    detail_page = DetailPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}"
    ).wait_for_page_to_load()
    detail_page.begin_signoffs_button.click()
    for checkbox in detail_page.required_checklist_section:
        try:
            checkbox.checkbox.click()
        except Exception:
            continue
    detail_page.save_sign_offs_button.click()
    detail_page.ready_to_ship_button.click()
Exemplo n.º 2
0
def fill_experiment(
    base_url,
    selenium,
    variables,
    ds_issue_host,
    fill_overview,
    fill_timeline_page,
    fill_design_page,
    fill_analysis_page,
    fill_risks_page,
):
    # fills experiment and gets it ready to ship
    print(fill_overview.url)
    detail_page = DetailPage(
        selenium, base_url, experiment_url=f"{fill_overview.url}"
    ).wait_for_page_to_load()
    detail_page.begin_signoffs_button.click()
    for checkbox in detail_page.required_checklist_section:
        try:
            checkbox.checkbox.click()
        except Exception:
            continue
    detail_page.save_sign_offs_button.click()
    detail_page.ready_to_ship_button.click()
Exemplo n.º 3
0
    def save_btn(self):
        self.find_element(*self._save_btn_locator).click()
        from pages.experiment_detail import DetailPage

        return DetailPage(self.driver, self.base_url).wait_for_page_to_load()