12-15-2009, 08:06 PM
Thanks Niranjan. That is very close to what I want but not quite. Here is what I have done. Action 1 logs me in with a user from the datatable. Action 2 uses an if to check the menu option and if not it logs me off then starts me at the beginning again like I want. The only thing now is telling it to advance forward in the data table. I am not quite sure how to do that. What happens now is it will run in a loop using the same user over and over. :-) Here's my code for Action 2. The main row is the one with the arrow. Is there a way I can set the first action to look at the next user in the data table or pass a parameter like I am trying to do there?
Code:
CheckMenuOption = Browser("Main Menu").Page("Main Menu").WebElement("Reporting").Check (CheckPoint("Reporting"))
If CheckMenuOption THEN
Browser("Main Menu").Page("Main Menu").WebElement("Reporting").Click
ELSE
Browser("Main Menu").Page("Main Menu").Link("@Home").Click
Browser("Main Menu").Page("Staff").Link("Logoff").Click
Browser("Main Menu").Page("Login").Link("Log in Using Desktop Username/").Click
-->>> RunAction "Masq until Menu Option displays", i = datatable.SetNextRow
END IF
Browser("Main Menu").Page("Main Menu").WebElement("Category Total Report").Click