Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DO UNTIL
#3
Solved: 10 Years, 10 Months, 2 Weeks ago
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
Reply


Messages In This Thread
DO UNTIL - by wheelercha - 12-15-2009, 01:56 AM
RE: DO UNTIL - by niranjan - 12-15-2009, 05:54 AM
RE: DO UNTIL - by wheelercha - 12-15-2009, 08:06 PM
RE: DO UNTIL - by wheelercha - 12-16-2009, 03:06 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)