10-07-2009, 12:02 AM
Hi Guys thanks for your reply. I have modified my code and mostly it is working now. As my code is like this
Actually it has the four conditions.
1. Report should show if Quick Links are there in the screen.
2. Should show the Technical error if it is there in the screen.
3. Should show Target Report is not available if this frame is there in the screen.
4. Should show Please enter a valid file scode... if this frame is there in the screen.
And one more small help please.
Actually it should show only the reports which are fine (First Case) and it should through error msgs for all other scenarios in the final results.
To be specific, to the addition of my logic, how can I get the final result where I can check that which reports are not fine?
Thanks in advance guys.
Code:
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").WebEdit("txtPageCode").Set DataTable("Scode", dtGlobalSheet)
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("1440_hotOk_16_h_g").Click
If Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("frPage").Link("Quick Links ยป").Exist then
msgbox("Report is Configured")
else if Browser("Conrep-by Division_2").Page("Conrep-by Division").Frame("frPage").WebElement("Technical Problem (Critical)!").Exist then
msgbox("Technical Error")
else if Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("frPage_2").Link("My User Profile").Exist then
msgbox("Target Report is not available.")
else msgbox("Please enter a valid file scode...")
End if
End if
End if
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("Home").FireEvent "onmouseover"
Browser("Conrep-C2C Consultants").Page("Conrep-C2C Consultants").Frame("fr1").Image("Home").Click
wait 5
Actually it has the four conditions.
1. Report should show if Quick Links are there in the screen.
2. Should show the Technical error if it is there in the screen.
3. Should show Target Report is not available if this frame is there in the screen.
4. Should show Please enter a valid file scode... if this frame is there in the screen.
And one more small help please.
Actually it should show only the reports which are fine (First Case) and it should through error msgs for all other scenarios in the final results.
To be specific, to the addition of my logic, how can I get the final result where I can check that which reports are not fine?
Thanks in advance guys.