Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I couldn't rectify the error in following script..pls helpme frds..
#1
Solved: 10 Years, 9 Months, 1 Week ago
Hi Frds,

Please help me on this following script..I have written Function script to enter username,pwd fields and verify status.
'**** Following script for ActiTIME-Login" screen.

Code:
Set un = Browser("ActiTIME-Login").Page("ActiTIME-Login").webedit("username")
Set pwd =Browser("ActiTIME-Login").Page("ActiTIME-Login").webedit("pwd")
Set btn = Browser("ActiTIME-Login").Page("ActiTIME-Login").webbutton("Login now")

Call objectset (un, "admin")
Call objectset (pwd, "manager")
Call objectset(btn)

Function objectset(testobj, sinput)
   sobjname = testobj.Tostring
   Status = verifyobjexistandenabled(testobj)
   If status = True Then
       Desc = "setting" &sinput& "in to"&sobjname
       Reporter.ReportEvent micPass, "objectset", Desc
       testobj.setsinput
      
     Else
     Exittest
      
   End If
End Function
*****************************
When i am executing the above script it's giving error message
"Type Mismatch: Status = verifyobjexistandenabled(testobj)"

Please help me what is the problem in the above script??
What is the object method we can use for verify status (For web & Windows)

Thanks in Advance,
Reply


Messages In This Thread
I couldn't rectify the error in following script..pls helpme frds.. - by Kishore_J - 01-23-2011, 04:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  .vbs script error when trying to insert a value in a sapguitable frebuffi 5 6,496 07-18-2013, 03:04 PM
Last Post: Staff
Exclamation SystemUtil.run script is not generating while recording in qtp 9.5..pls help me senthil.kumar 0 2,478 01-24-2013, 02:09 PM
Last Post: senthil.kumar
  Error while creating object using description.create object in VB script SarodeGirish 5 5,818 06-19-2012, 05:30 PM
Last Post: ssvali
  Receiving an IIS authentication error when replaying a.net windows application script nithya.cov@gmail.com 0 2,443 04-16-2011, 10:58 AM
Last Post: nithya.cov@gmail.com
  error in datbase script sandeep.shivnani@gmail.com 0 2,187 03-08-2011, 06:03 PM
Last Post: sandeep.shivnani@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)