How to count no of edit boxes on the page?
Answers were Sorted based on User's Feedback
Answer / babu
Set oDesc = Description.Create()
oDesc("micclass").Value = "Webedit"
Set Lists=Browser("Login").Page("Application").ChildObjects
(oDesc)
NumberOfLists = Lists.Count()
msgbox NumberOfLists
By using above statements you can find the count for no of
edit boxes in a page.
Correct me if i am wrong.
Is This Answer Correct ? | 25 Yes | 3 No |
Answer / guru
'Count the Number of Edit box
Set Desc = Description.Create()
Desc("micclass").Value = "WebEdit"
Set EditBoxes = Browser("").Page("").ChildObjects(Desc)
MsgBox "Number of Edits: " & EditBoxes.Count
By using above code you can find the count for no of
edit boxes in a page.
Correct me if i am wrong.
Is This Answer Correct ? | 5 Yes | 2 No |
Answer / jaivir singh
Hi All,
Please use below DP to Counts(Links,web Button and WebEdit Box)of any web applications.simply you need to copy from here and past in QTP.
SystemUtil.Run "iexplore.exe","https://accounts.google.com/ServiceLogin?hl=en&continue=https://www.google.co.in/%3Fgws_rd%3Dcr%26ei%3De_HIUsCCNcqOrgfT0oCAAQ"
wait 10
Set Desc = Description.Create
Desc("micclass").Value = "WebEdit"
Set Edits = Browser("creationTime:=0").Page("micclass:=Page").ChildObjects(Desc)
MsgBox "Number of Edits: " & Edits.Count
Set LinkObj=Description.Create
LinkObj("micclass").Value = "Link"
Set Links = Browser("creationTime:=0").Page("micclass:=Page").ChildObjects(Link)
MsgBox "Number of Links: " & Links.Count
Set btns=Description.Create
btns("micclass").value="WebButton"
Set dlg=Description.Create
dlg("name").value="signIn"
Set ocollection = Browser("creationTime:=0").Page("micclass:=Page").ChildObjects(btns)
msgbox ocollection.count
Set ImageObj=Description.Create
ImageObj("micclass").value="Image"
Set dlg=Description.Create
dlg("name").value="Image"
Set oImage = Browser("creationTime:=0").Page("micclass:=Page").ChildObjects(Image)
msgbox oImage.count
Is This Answer Correct ? | 3 Yes | 0 No |
In google i'm going to search something like "rose", i usually get 10 results in the first page and in 2nd page 10 results and in 3rd 10 results so on upto 10th page 10 results. so if i want to open all the 10 pages 10 results i.e., 100 results and close..what is the DP for this? pls can anyone answer my Question..PLZZZZZ...
How will you handle application crash using recovery scenario manager(step by step process)?
i want information about API testing and i want info like how process can be done in company? i want added info like coding ,debugging, desing in c.v ? what should add in c.v for eg banking domin? pls any answer my question?
How To clear the AutoComplete?
What’s the QTP testing process?
Hi guys, Please suggest some thing these points are correct???, Is UFT 12 and QTP outdated ??? and also VBscript is also deleted/Removed from QTP ???? Javascript is added latest and tool name is called JFT ??? From this year ??
what are the issues we will get when there is migration from QTP 8.2 to QTP 10.0? Is there any problem in executing scripts of 8.2 on 10.0?
Which features or drawbacks of QTP lead to the upgrade for a newer version?
What is the Maximum syncronization timeout in seconds in QTP 9.5
X flies from Hyd to bangalore using different methods of transportation. write the test scenarios and test cases for this?
I am testing a website TheLancet in qtp 9.2 and running a script but its not working.Tell me if m doing anything wrong in the script. If Browser("TheLancet.com - Home Page").Page("TheLancet.com - Home Page").Link("Clinical").exists then msgbox "object exist" Else msgbox"object doesnt exist"
Is it possible to change the values of analog recording?