Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Use Split Function using the Following Example?
#1
Wink 
Hi,

I am using QTP with VBscript. And i have used the following Code like that,

Code:
Browser("Browser").Navigate "......." Dim Str1 str1="WebButton" msgbox str1 Dim str2 str2="Reset" msgbox str2 Dim res res=str1 & "(" & str2 & ")" Browser("Browser").Page("OpenSSO (Login)").res.Click

If i run that script, it shown error as "Object does not support property or method".How to avoid this type of error using split function.

Please do the needful.

Thanks in Advance,
Subramanian.M
Reply
#2
Try this code

Code:
Dim sStatement sStatement = "Browser("Browser").Page("OpenSSO(Login)")" sStatement = sStatement & res & ".Click" Execute sStatement
Reply
#3
What does msgbox res=str1 & "(" & str2 & ")" display?
Secondly what do you mean by avoiding this type of error using split?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Suggestion required dtest 0 2,541 06-20-2012, 03:31 AM
Last Post: dtest
  What is split a action and what is the use of it? ritugoyal 1 7,595 11-24-2009, 11:28 AM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)