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
'URL: www.itprofessionalacademy.in/demo_site/web_table/index.html
'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
Next
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
	Next
	Print(sTemp)
Next

'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
'URL:http://www.itprofessionalacademy.in/demo_site/web_table/index.html
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)
	 Next
	 
	Set oChildItem = Browser("title:=.*Multiple.*").Page("title:=.*Multiple.*").WebTable("html id:=tg-8nE6U").ChildItem(i,5,"WebEdit",1)
	oChildItem.Set temp
Next


'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
Next

Download Above Code

Comments:


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=http://incrave.tk/BDSM/1986-Photos-femmes-matures-et-clevage.html>Photos femmes matures et clevage</a> Naked mature women beach <a href=http://rosttrasensi.ml/Chicas/Videos-de-Avatar-mp4-porno842.html>Videos de Avatar mp4 porno</a> Shemale fucks five girls <a href=http://gigginamorata.gq/Party/Bondage-in-shay-sight-1413.html>Bondage in shay sight</a> Nude picture of sridevi <a href=http://wantent.cf/Anal/2222-VidГ©os-porno-Г©coliГЁre-gratuit.html>VidГ©os porno Г©coliГЁre gratuit</a> Mature brunette busty 04 <a href=http://sootheir.ga/Uniform/Statistics-asian-teen-hardcore.html>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=http://swaineed.ga/Pissing/1697-Melbourne-au-gay-shops.html>Melbourne au gay shops</a> Eating another guys creampie from girlfriend <a href=http://assertial.ga/Squirting/Arthur-and-the-invisibles-xxx.html>Arthur and the invisibles xxx</a> Treat vaginal fistula in boston <a href=http://pressners.ga/Anal/3019-Adult-mardi-gras-pics.html>Adult mardi gras pics</a> Cheering for huge cock <a href=http://seekissuest.ml/Latina/51-850-japanische-Teen-Lesben590.html>51 850 japanische Teen Lesben</a> Lesbian free sex games <a href=http://ridolizes.cf/Party/Smoking-hot-teen-takes-huge-2970.html>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? - http://ria.com
Updated by GlennGig at 2018-01-29 10:19:39
<a href=http://lexapro60mg.fun>lexapro</a>
<a href=http://celexa20mg.store>http://lexapro60mg.fun</a>
<a href=http://celebrex200mg.fun>celebrex 200mg</a>
Updated by GlennGig at 2018-01-29 10:28:01
<a href=http://lexapro60mg.fun>lexapro 10 mg</a>
<a href=http://celexa20mg.store>http://lexapro60mg.fun</a>
<a href=http://celebrex200mg.fun>celebrex 200 mg</a>

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 : *