Hi i have a webtable which is having 7 columns and 6 rows
of data in that table of 4th and 5 th column each row is
partiotioned into 3 sub rows i want to verify in each
partitioned rows of corresponding row for ex values will be
like this 0 / 1 ,26/28.if it is 0/1 i want to skip only if
any num/num greater than 1 i want to click.



Hi i have a webtable which is having 7 columns and 6 rows of data in that table of 4th and 5 th co..

Answer / mogal

RC = Browser("BrowserName").Page("PageName").WEbTable("TableName").RowCount
For iLoop = 1 to RC
Set Link1 = Browser("BrowserName").Page("PageName").WEbTable("TableName").ChildItem(iLoop,4,"ClassName",0)
Set Link2 = Browser("BrowserName").Page("PageName").WEbTable("TableName").ChildItem(iLoop,4,"ClassName",1)
Set Link3 = Browser("BrowserName").Page("PageName").WEbTable("TableName").ChildItem(iLoop,4,"ClassName",2)
If Cint(Link1.GetRoproperty("value")) and Cint(Link2.GetRoproperty("value")) > 1 Then
Link3.Click
End If

Next

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More QTP Interview Questions

what is purpose of automation?

3 Answers  


what are the areas that cannot be tested using an automated tool? list a few

3 Answers  


I have a 10 lines of qtp script, while executing i got an error at line 7 but i dont want to stop the execution i want to continue the execution up to last line and display the test result window, wts the syntax we use?

3 Answers   BirlaSoft, Collabera,


how can we retrieve ten rows from the data table using loop concept?

4 Answers  


How do you know the location Id of an object if you know its index id?

0 Answers  






What are the recording modes in qtp?

0 Answers  


More details about keyword driven technique in QTP

1 Answers   TCS,


how could i download qtp in which i get add-in support for 'oracle' is there any way to get it? i finding but not getting pls help me out :)

0 Answers  


While spliting an action in QTP 10.0 getting an error : "This Line is a part of Script Block.You cannot split the action on this line." how to re-solve this and split the script into actions?

0 Answers  


Please tell me the steps to record the test in Analog recording mode in QTP version 9.2???

2 Answers  


what r the main benefits of automation?

2 Answers  


What is data driver in qtp? Where we use it?

0 Answers  


Categories