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
#2
Not Solved
Hi,

Code:
If Browser("Imperial Oil Limited"),Page("Imperial Oil Limited_2").Frame("sweview").WebTable("Select for MultiPay").GetCellData(1,10)="Open" Then
MSGBOX "OK"
End If


Regards
KrishDeep
Reply


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

Forum Jump:


Users browsing this thread: 1 Guest(s)