def test_add_btn_visibility(self): ttime_logger.info("Testing next_btn visibility") highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() assert timesheet.check_add_btn_visible()
def test_logged_in_user_by_name(self): ttime_logger.info("Testing logged in username") highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() assert timesheet.check_login_name()
def test_validLogin(self): baseurl = 'https://www.fieldglass.net' driver = webdriver.Chrome() driver.maximize_window() driver.get(baseurl) lp=LoginPage(driver) lp.login('kiranreddy35','kpsskkr1473') time.sleep(2) userAcount = driver.find_element(By.XPATH,'//*[@id="activelinkedUserName"]') if userAcount is not None: print('login successful') else: print('log in failed') lp1=TimeSheet(driver) lp1.TimeSheetPage()
def test_add_entry(self, projcode="ARUBAUTO", type="Meet", hrs=8, mins=0, description="hjhg"): ttime_logger.info("Testing add entry") highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() timesheet.add_entry(driver, projcode, type, hrs, mins, description)
def test_timesheet_opened_in_current_date(self): highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() assert timesheet.check_date_for_today()
def test_color_orange_to_blue(self): highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() assert timesheet.orange_to_blue()
def test_delete_btn(self): highway = HighWay(driver) highway.open_highway(driver) timesheet = TimeSheet(driver) timesheet.open_timesheet() assert timesheet.deleting_entry()