i have 100 check box in a link,out of 100 check box in 25
check box their written qtp(any where i dont know),i have to
select first check box where 1st qtp found.
Answers were Sorted based on User's Feedback
Answer / tom chruise
you need to create child object then use of GetRO fetch the
expected value
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / boomi
Hi below code is the answer. You can make it as a function if you want to use this in multiple places.
Set objDesc = Description.Create()
objDesc("ClassName").Value = "WebCheckBox"
Set objText = ObjHierarchy.ChildObjects(objDesc)
For intItem = 1 To objText.Count - 1
strChkVal = ObjHierarchy.WebCheckBox("index:=" & intItem).GetROProperty("value")
If (StrComp(strChkVal, "QTP", vbTextCompare) = 0)
ObjHierarchy.WebCheckBox("index:=" & intItem).Click
Exit For
End If
Next
| Is This Answer Correct ? | 2 Yes | 0 No |
Tell me which web driver implementation is the fastest?
Could anybody send me the document on how to re install QTP 9.0 after the evalution period (14 days). It will expire within 3 days. Thabks in advance.
Tell us what is the alternate way to click on login button?
what is the difference between winrunner,loadrunner,qtp,silktest,rational robo?
hi to all, if we open a browser(for ex. yahoomail.com) using navigate command. the cursor by default focussing on the 'yahoo id' html edit box. how to get the label(ie.,yahoo id) of that html edit box using descriptive program. here we should not use identify tool to get the property,thtml editbox method. by tracing the cursor position we have to get the label name. is it possible? please let me know.
Do you know what is the purpose of creating a reference variable- 'driver' of type webdriver instead of directly creating a firefoxdriver object or any other driver's reference in the statement webdriver driver = new firefoxdriver();?
How do you plan test automation?
which is the best online training website?
What is Test strategy documents.
How to explain testing life cycle where exactly testing starts after coding stage or after preparing FRS document
What are the different types of testing framework techniques?
Explain me what is the difference between setspeed() and sleep() methods?