Hello Team!
In the below script I'm setting the webchecbox as "ON" and then looking
for "href" value..and then perform the next step. But when I run this
script sometimes even if the checkbox is selected the href value is
blank...So now I want to use a logic that Set "ON" when the href value is
not blank do the next step and Set "OFF" when the href value is blank..Can
someonw help me script the logic.
*********************************************************************************************************************************************************************8
With Browser("openedbytestingtool:=0").Page("title:=.*")
numRow= .WebTable("class:=af_table_data-table
af_table_data-table-H-lines","name:=gear").GetRowWithCellText("xyz")
.WebcheckBox("html
id:=pt1:r1:0:t1:"&numRow-1&":it1::content").Set "ON"
Do Until .Image("html
id:=pt1:r1:0:t1:"&numRow-1&":cil05::icon").GetROProperty("href") <> ""
wait(1)
Loop
.Image("html
id:=pt1:r1:0:t1:"&numRow-1&":cil05::icon").Click
If .WebElement("html
tag:=TD","innertext:=View","Index:=2").Exist(2) Then
.WebElement("html
tag:=TD","innertext:=View","Index:=2").Click
End If
End With
**********************************************************************************************************
Appreciate all your help
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en