Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST

Answers were Sorted based on User's Feedback



HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / shobhit kaul

well for this the simplest answer is add that object on
Object Repository and then use the property getRoProperty
("itemscount")

Example::

weblist.getRoProperty("itemscount")

Is This Answer Correct ?    19 Yes 1 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / msnreddy

itemcount=Browser("browser name").page("page
name").weblist("web list name").GetRoproperty("items count")
msgbox itemcount

Is This Answer Correct ?    17 Yes 2 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / raju & prasad

sorry for the 1st answer

using getitemscount method we can get how many items
present in the weblist


ex: a=window("name").wincombobox("name").getitemscount
msgbox a

if u have any quarries please ask to us.

Raju & Prasad
9823257761 & 9764156846

Is This Answer Correct ?    6 Yes 1 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / ram.polavarapu

n=browser("").page("").weblist("").getroproperty
("itemscount")
print n

Is This Answer Correct ?    1 Yes 1 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / nanda

Hi Raju..its good answer.

keep answering..

Nanda

Is This Answer Correct ?    1 Yes 2 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / sateesh

s=Browser("browser name").page("page
name").weblist("web list name").GetRoproperty("items count")
msgbox s
we get number of items.

Is This Answer Correct ?    4 Yes 5 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / raju

to get an HTML source code of Web page
HtmlCode = Browser("Google Labs").Page("Google Labs").Object.documentElement.outerHtml

' save HTML code to a local file
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.CreateTextFile("C:\HtmlCode.html", True, -1)
f.Write(HtmlCode)
f.Close()

' run tidy.exe to convert HTML to XHTML
Set oShell = CreateObject("Wscript.shell")
oShell.Run "C:\tidy.exe --doctype omit -asxhtml -m -n C:\HtmlCode.html", 1, True ' waits for tidy.exe to be finished

' create MSXML parser
Set objXML = CreateObject("MSXML2.DOMDocument.3.0")
objXML.Async = False
objXML.Load("C:\HtmlCode.html")

XPath = "//a" ' XPath query means to find all links
Set Links = objXML.SelectNodes(XPath)
Msgbox "Total links: " & Links.Length

Is This Answer Correct ?    0 Yes 1 No

HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST..

Answer / raju

syn:

x=object Hirarachery. GetContent

ex:
sRegKeys = Window("Registry Editor").WinListView
("SysListView32").GetContent

Is This Answer Correct ?    1 Yes 5 No

Post New Answer



More QTP Interview Questions

banking project description for software tester

0 Answers   Semantic Space,


What are the versions of qtp,What are the differences b/n them?

1 Answers   TCS,


What are SetToProperty, SetRoProperty, GetToProperty scripting?

2 Answers  


how to export the result to notepad....for example i want to enter the user name and pass word and clicking on login button ......once you click on login button the corresponding page will open ...in that page you having one list box ...here you can get either success or failure ........friends here i want export the message what ever i got either success or failure .....how to export the result to note pad

1 Answers   Mind Tree,


what is the latest version of QTP? Main difference between 9.2 and 10 version

0 Answers  






What is the latest version of qtp?

0 Answers  


How to save your test using quicktest professional?

0 Answers  


how qtp will recognise if application is run on many browsers

1 Answers   Cap Gemini,


When I parameterize a script then for each iteration script is executed from begining to end. If I want to execute some middle steps multiple times using Parameterization (avoiding begining and end steps), what is the solution of this (e.g. total steps are 1 2 3 4 5 and i want 2 3 4 only(not 1 nd 5)

2 Answers  


How good are you in writing VBscript code for your application? Can you completely write VBscrit for your project with out using recording mode in QTP?

3 Answers   CTS,


Explain about invoking of application?

2 Answers  


Hi, I'm a beginner in QTP and planning of a certification in QTP, but have no idea about it :P. Could anyone please tell me what certifications that a QTP- beginner can take? What is the fees and the syllabus for the certification? Please reply soon. Thanks Vidhya

0 Answers  






Categories