Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to chk alert given is correct or not.
#1
Exclamation 
How to chk alert given is correct or not.
for eg. trying to save record with existing roll no.
expected alert is 'Roll number already exists'
but different alert gets displayed.
Reply
#2
Hi,
Try using Text Checkpoint or you can use Browser("").Page("").Dialog("").GetVisibleText and then compare with expected result

Example:
Code:
vactresult = Browser("").Page("").Dialog("").GetVisibleText If Instr(1, "Roll number already exists", Trim(vactresult)) = 0 Then Msgbox "Fail" End If
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  correct use of OR statement lotos 2 3,378 06-02-2011, 02:52 PM
Last Post: lotos
  Is the split array method the correct tool for the job? qatestbrian 0 2,396 01-06-2010, 02:06 AM
Last Post: qatestbrian
  How to select correct list? rahul1234 1 2,736 10-14-2009, 12:55 PM
Last Post: Saket
  Email Alert v890115 6 4,727 09-03-2009, 02:39 AM
Last Post: v890115

Forum Jump:


Users browsing this thread: 1 Guest(s)