def verify_vfl_settings_first_row(driver, year, visits): """fucntion will verify whether the first row has the give year and visits values""" year_string = str(year) visits_string = str(visits) function_module.verify_value(driver, "//*[@id='dtSettingsContainer']/tr/td[1]", year_string, 'VFL', 'Settings Tests', 'Successfully verified that Year for first row is'+year_string+'', 'Could not verify that Year for first row is '+year_string+'') time.sleep(1) function_module.verify_value(driver, "//*[@id='dtSettingsContainer']/tr/td[2]", visits_string, 'VFL', 'Settings Tests', 'Successfully verified that Visits for first row is '+visits_string+'', 'Could not verify that Visits for first row is '+visits_string+'') time.sleep(1)
def vfl_reports_button(driver): """Object selects the VFL Reports button. NOTE - In version 8 this might move to Common Objects as generic open Reports Module button""" common_page_objects.click_button(driver, "//*[@id='left-panel']/nav/ul/li[3]/a/i") function_module.verify_value( driver, "//*[@id='content']/div[1]/div[1]/h1", 'Reports', 'VFL', 'Moving to Reports Module', 'Asserted that we have successfully moved to the Report section', 'Failed to access to the Report tab')
def verify_vfl_settings_first_row(driver, year, visits): """fucntion will verify whether the first row has the give year and visits values""" year_string = str(year) visits_string = str(visits) function_module.verify_value( driver, "//*[@id='dtSettingsContainer']/tr/td[1]", year_string, 'VFL', 'Settings Tests', 'Successfully verified that Year for first row is' + year_string + '', 'Could not verify that Year for first row is ' + year_string + '') time.sleep(1) function_module.verify_value( driver, "//*[@id='dtSettingsContainer']/tr/td[2]", visits_string, 'VFL', 'Settings Tests', 'Successfully verified that Visits for first row is ' + visits_string + '', 'Could not verify that Visits for first row is ' + visits_string + '') time.sleep(1)
def vfl_reports_button(driver): """Object selects the VFL Reports button. NOTE - In version 8 this might move to Common Objects as generic open Reports Module button""" common_page_objects.click_button(driver, "//*[@id='left-panel']/nav/ul/li[3]/a/i") function_module.verify_value(driver, "//*[@id='content']/div[1]/div[1]/h1", 'Reports', 'VFL', 'Moving to Reports Module', 'Asserted that we have successfully moved to the Report section', 'Failed to access to the Report tab')