Student Mode Code Display

Welcome to the Fraternity!

Commenting has been enabled. You can comment on all the Code Items now.

All About WebTable Handling in QTP

Add This Code to My Favourite List
Enter Email

Contributed By IT Prof
Date 2016-03-20 01:03:22

'Tutorial: itprof_tut
'Detail: Code to perform Basic and Advanced Web table Operations
'Author: Akash

'1. Row Count and Column Count
' In column count column number sshould be mentioned
' as different row can have different columns in HTML Web table implementation
sClmCnt = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").ColumnCount(1)
sRowCnt = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").RowCount
sTemp = 0

'2. To Add Amount Column Values
For i=1 to sRowCnt-1
	sTemp = Split(Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").GetCellData(i+1,4),"$")(1) + sTemp
msgbox "$"&sTemp

'3. To get Row Number of the Cell based on Cell Text
Print Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").GetRowWithCellText("Stationary")

'4. Traverse  Web Table cell by cell
For i= 1 to sRowCnt
	For j=1 to sClmCnt
		sTemp =  (Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").GetCellData(i,j)) & "," & sTemp

'5. Child Item Method Usage
Set obj = Browser("Multiple Object with same").Page("Multiple Object with same").WebTable("Ref. No.").ChildItem(6,5,"WebEdit",0)
obj.Set "$5000"

'Function to set amount and coment in which user has issue
'using GetRowWithCellText and ChilItem
FncSetEditBoxValues "Broad band","5000","Correct Amount"
FncSetEditBoxValues "Books","5000","Correct Amount"

Function FncSetEditBoxValues(sRefNum,sAmnt,sComment)
	sRow =  Browser("Browser").Page("Page").WebTable("TransactionTable").GetRowWithCellText(sRefNum)
	Set oWebEdit_Amnt = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").ChildItem(sRow,5,"WebEdit",0)
	Set oWebEdit_Cmnt = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").ChildItem(sRow,5,"WebEdit",1)
	oWebEdit_Amnt.Set sAmnt
	oWebEdit_Cmnt.Set sComment
End Function

'6. Read all cell values in a row, concatnate each value of that row
'and set it comments section of corresponding row
sRowCount = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").RowCount
sClmCount = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").ColumnCount(1)

For i=2 to sRowCount
	temp = ""

	 For j=1 to sClmCount-1
		temp = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").GetCellData(i,j)
	Set oChildItem = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").ChildItem(i,5,"WebEdit",1)
	oChildItem.Set temp

'7. Using Child Objects in Web table
Set oDesc = Description.Create
oDesc("micClass").value = "WebEdit"

Set oChild = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").ChildObjects(oDesc)
For i=1 to oChild.Count
	temp = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").GetCellData(i,2)
	oChild(i-1).Set i

Download Above Code


Updated by Jakesar at 2018-01-21 01:34:24
12 cock blow jobs Cote de pablo naked Russian patriarch worked with Watching porn while having sex Are hand jobs safe Naked pictures of middle eastern men How much fat should you have a day Native american sex men Panking a hot ass Adult movie with a really good storyline Asian moms naked videos Biggest swingers party florida Elder scrolls morrowind sex patch Flaccid to erect nipples Porn with no blowjobs

English bipolar disorder teens mental <a href=>Photos femmes matures et clevage</a> Naked mature women beach <a href=>Videos de Avatar mp4 porno</a> Shemale fucks five girls <a href=>Bondage in shay sight</a> Nude picture of sridevi <a href=Г©os-porno-Г©coliГЁre-gratuit.html>VidГ©os porno Г©coliГЁre gratuit</a> Mature brunette busty 04 <a href=>Statistics asian teen hardcore</a>

Rhiannon finneran hardcore fetish Japanese hardcore wrestling dvd Classy lingerie thumb pics Nude naked men for women eyes Escort chicago alex male Japanese love story 270 porn Naughty bitch parades her plump Adult friend finder the world largest Best movie breasts history Sexy fucking girls daily motion

Asian babe boob huge <a href=>Melbourne au gay shops</a> Eating another guys creampie from girlfriend <a href=>Arthur and the invisibles xxx</a> Treat vaginal fistula in boston <a href=>Adult mardi gras pics</a> Cheering for huge cock <a href=>51 850 japanische Teen Lesben</a> Lesbian free sex games <a href=>Smoking hot teen takes huge</a>

Chloe mafia sex pics Dirty filthy fat big tits grannies Nurses attitude to masturbation Brande roderick nude naked Hot girls naked or almost naked
Updated by JamesJeott at 2018-01-26 11:39:47
HI - this good site? -
Updated by GlennGig at 2018-01-29 10:19:39
<a href=>lexapro</a>
<a href=></a>
<a href=>celebrex 200mg</a>
Updated by GlennGig at 2018-01-29 10:28:01
<a href=>lexapro 10 mg</a>
<a href=></a>
<a href=>celebrex 200 mg</a>
Updated by dlp store kamagra at 2018-03-31 17:30:55
kamagra 100mg oral jelly kako se uzima
<a href="">kamagra 100 mg oral jelly</a>
kamagra kopen amsterdam
<a href="">buy kamagra 100 mg</a>
kamagra shop erfahrungen
kamagra oral jelly 100mg usa
Updated by MichaelDrymn at 2019-05-18 21:11:12
centuries descriptions expenditures
<a href=>televisions </a>
navigator replacing arbitrary
Updated by Isaacgatly at 2019-05-21 16:31:54

Add your comments...
Name : *      
Email : *      
The content of this field will be kept private and will not be shown publicly

Your Comment/Answer *

Enter the text present in this box : *