Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Writing an IF statement
#1
Not Solved
I have a webtable and I want to write an IF statement saying that in row 1, column 10, if the value = "Open", then pop-up a message box saying "OK"

Basically i wrote this line:

Code:
If Browser("Imperial Oil Limited"),Page("Imperial Oil Limited_2").Frame("sweview").WebTable("Select for MultiPay").ChildItem(2,10, "innertext:=Open.*", 0) Then
MSGBOX "OK"
End If
I know this is wrong and I hope you can tell me how to write an IF statement for my problem. Thanks
Reply


Messages In This Thread
Writing an IF statement - by mahadevan.swamy - 10-29-2008, 08:58 PM
RE: Writing an IF statement - by krishnas.tester - 10-30-2008, 10:15 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Does QTP support writing runtime data to multiple sheets in excel Shwethareddy 2 3,709 10-16-2012, 12:20 PM
Last Post: Shwethareddy
  Executing statement and commiting statement via qtp unbeliever 6 20,640 01-07-2010, 07:11 PM
Last Post: unbeliever
  Sequence of Writing to Word document Raj20091 2 2,996 12-03-2009, 07:25 PM
Last Post: Raj20091
  Writing optimized QTP scripts jp@QTP 2 2,930 06-30-2008, 10:14 AM
Last Post: jp@QTP

Forum Jump:


Users browsing this thread: 1 Guest(s)