A web Page has 2 frames. Find out the number of weblist
items in the second frame of the page.
Answers were Sorted based on User's Feedback
Answer / sesibhushan
set FrameObj=Browser("micclass:=Browser").Page
("micclass:=Page").Frame("micclass:=Frame","index:=1)
Set wList=description.create
wList("micclass").value="WebList"
set wListObj=FrameObj.ChildObjects(wList)
wListcount=wListObj.count
msgbox wListcount
| Is This Answer Correct ? | 30 Yes | 0 No |
Answer / vasu j
The above answer by Sesibhushan is exactly correct.
| Is This Answer Correct ? | 2 Yes | 1 No |
difference between GetROProperty and GetTOProperty
any body want to learn qtp with real time concept on Banking domain contact ciraaj@gmail.com
What are the types of object repository?
How do know the number of browsers opened?
How to Run a Test using QTP?
Hi any body pls help me for QTP 11.0 software free demo version. i have to practice. Kindly send the link.or where i have to download.
What is the present version of the VB Script we are using
How to run a script from lines 50 - 100 alone (if the script has 1- 200 lines of code)?
I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that
Please have a look at this: a = Browser("Travel Boutique Online").Page("Travel Boutique Online_2").webelement("innerhtml:=2622").getroproperty("y") a=a+9 msgbox a Browser("Travel Boutique Online").Page("Travel Boutique Online_2").image("alt:=check","y:=a").click Now please let me explain. As clear from code I am trying to enter value of variable 'a' as Property y. But each time QTP AND MY SYSTEM stops responding when this line is execcuted. But When i enter some number in place of 'a' in the last line. it works fine. Please let me know what I am doing wrong at time of entering the variable in last line. Thanks a lot
How can I find out whether a word in a string is existed or not for example "QTP IS A POWERFULL TOOL FOR AUTOMATION" How can i find out whether "powerfull" is existed in the above string or not Could anyone answer it?
any one could you explain the following code with example: intFieldItemsCnt =CInt(GetProperty(Browser ("Browsername").Page("Pagename").Weblist ("weblistname"),"items count")) msgbox intFieldItemsCnt