in a web table , i want you to click a particular object inside cell
Answers were Sorted based on User's Feedback
Answer / bhargavi
We can achieve it using ChildItem() method
Syntax object.ChildItem(Row,Column,Micclass,Index)
Assume there is a webtable with name "UserDetails" in a page.We have to click a link which is in first row,first column of webtable.Then the code will be as follows:
Browser("title:=Gmail").Page("title:=Gmail").Webtable("name:=UserDetails").childitem(1,1,"Link",0)
Note:Assuming browser & page property 'title' value as "Gmail"
| Is This Answer Correct ? | 12 Yes | 1 No |
browser("index:=0").page("index:=0").webtable("index:=0").childitem(2,1,"Link",0).click
| Is This Answer Correct ? | 3 Yes | 0 No |
Hi, I have 2 dropdown listboxes called region and city/area. It needs to select one region(Santa Clara) and one city/Area (Sunnyvale).So I put this in the for loop and I am storing the Items in the variable called itemname. The regions value will get changed,so I used reg expression for this regions. This is my code Browser("MLSListings.com").Page("MLSListings.com").Link("» County/Area").Click Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Check CheckPoint("regions") ListSize=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetTOProperty("items count") For i = 1 To ListSize-1 Itemname =Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Browser("MLSListings.com").Page("MLSListings.com").WebList ("regions").Select Itemname ................. If I run the script,I am getting the following error, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. Any Help? Thank you, Uma
What is throw object?
What is the condition or scenario that leads the use of object spy in qtp? (while recording we can get all the properties) then wat leads to use this?
what is reusable action and how the same can be implemented (process)?
What is active screen?
what is the extension for the test version of the script?
What are the advantages of Object Repository?
you written some code in qtp for opening google.com browser and entered some text inthe search text box and clicked search button. this is ur script.. before running this script i have already opened two google.com browsers. now am running the script what will happen? script will run or what?? Thanks... Nani
How did you resolve conflicts present in Object Repository?
how to write xml output check point bu useing descriptive programing .means without useing output check point
What is the exact difference bet function and action in QTP Anybody can explain it in detail..Thanks in advance..
Can we record using all the modes in a single script? Explanation with example is appreciated