Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

raheem


{ City } chennai
< Country > india
* Profession * it
User No # 123724
Total Questions Posted # 3
Total Answers Posted # 17

Total Answers Posted for My Questions # 2
Total Views for My Questions # 4839

Users Marked my Answers as Correct # 18
Users Marked my Answers as Wrong # 2
Answers / { raheem }

Question { 2141 }

Write code for ,We have a web table with rows and columns like
EmpID EName Action
1 ABC Edit Delete
2 XYZ Edit Delete
3 PQR Edit Delete

In the above Table the last column has two links we have to click first link based up on EmpID =2


Answer

RC = Browser("Browser name").Page("Pagename").webTable("TableName").RowCount
CC = Browser("Browser name").Page("Pagename").webTable("TableName").ColumnCount(1)

Rnum = Browser("Browser name").Page("Pagename").webTable("TableName").GetRowWithCellText(2)
for jLoop = 1 to CC
If Browser("Browser name").Page("Pagename").webTable("TableName").GetCellData(1,jLoop) = "Action" Then
Cnum = jLoop
Exit for
End if
Next
Set ReqLink =Browser("Browser name").Page("Pagename").webTable("TableName").childItem(Rnum,Cnum,"Link",0)
ReqLink.Click

Is This Answer Correct ?    1 Yes 0 No

Question { 1535 }

Explain getroproperty and gettoproperty & settoproperty?


Answer

getroproperty : This is a built-in method in UFT that is used to retrieve the run-time value of an object property from the object in the application

gettoproperty : It returns the value of a property for a test object which QTP recorded to identify during the recording

settoproperty :To set / Change the test object property during run time. This is only temporary change do not affect the values stored in the test object repository

Is This Answer Correct ?    1 Yes 0 No



Prev    1    [2]