Am testing a patient registration application. where i want to measure the time taken to open the patient panel after login in into system and add the time to a text file.
my code:
Code: Select all
var repo = TestRIS_iRepository.Instance;
var username = repo.LogIn.Username;
username.Click();
username.PressKeys("tau1");
var password = repo.LogIn.Password;
password.Click();
password.PressKeys("tau1");
var logIn = repo.LogIn.LogIn;
logIn.Click();
//want to check how much time taken, after clicking the login button utill the patient panel opens
var patient = repo.CentricityRISI50.Patient;
patient.Click();
var registration = repo.CentricityRISI50.Registration;
registration.Click();