Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Calling function but giving wrong parameter

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,56453
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling function but giving wrong parameter
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Calling function but giving wrong parameter - 2/7/2008 6:27:12 AM   
  shahid09

 

Posts: 58
Score: 0
Joined: 1/22/2007
Status: offline
 
Hi All,

I am calling one function and giving parameters but its not working

Call fRetrieval("SPAN","Status","claimbold|redbold")

Public Function fRetrieval(sHtmlTag, sInnerText, sClass)

Set objTable=Browser("micClass:=Browser").Page("micClass:=Page").WebElement("html tag:="&sHtmlTag, "innerText:="&sInnerText,"class:="&sClass).object

'Hardcode. I want something following

Set objTable=Browser("micClass:=Browser").Page("micClass:=Page").WebElement("html tag:=SPAN", "innerText:=Status,"class:=claimbold|redbold").object

End Function

Any idea where I am missing something ?

Thanks
SK
 
 
Post #: 1
 
 RE: Calling function but giving wrong parameter - 2/7/2008 12:40:50 PM   
  dm_4ever


Posts: 2641
Score: 46
Joined: 6/29/2006
From: Orange County, California
Status: offline
What is this youre using? It doesn't look like anything I've done in vbscript.  If anything, perhaps you're missing some " in which case I would recommend you first echo out the lines you're using to make sure you're formating them correctly.

_____________________________

dm_4ever

My philosophy: K.I.S.S - Keep It Simple Stupid
Read Me: http://www.visualbasicscript.com/m_24727/tm.htm
Frequently Asked Stuff: http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to shahid09)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Calling function but giving wrong parameter Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts