Hi,
I want to pass a value in to Link object.
For ex:
I have a link where in which contains the value
like "DC4463219(Active)".
Whenever i will execute the script this value "DC4463219
(Active)" will get changed.
I got the value DC4463219(Active) from the link and stored
that value in variable "ACTUAL".
If i want to select the same link again, while recording
the value DC4463219(Active) will be recorded in object
repository. So, that it will not work for the next cycle of
execution as the value will get changed everytime as i
mentioned above.
I want to pass that Acutal value in to link object. The
script is as follows:
Actual Script when recording:
Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(DC4463219(Active)".Click
But now instead of this DC4463219(Active) i want to pass a
variable where i have the same value.
I tried to execute the script
Browser("Web Login").Page("Application").Frame
("ScopeFrame").Link(Actual).Click
But it is displaying the error message as that the value
which we got from Actual is not existing in Object
repository. So,i made the link object as regular expression.
Even it is displaying the same message as mentioned above.
If you are not able to understand, feel free to contact me
with nbabu11@gmail.com
Answer / tvs ramakrishna chowdary
hello balu ur problem get solved by regular expression
----------------------------------------------------------
1)Go to Object Repository
2)Select Link Object
3)In the object properties pane(right side of window)
4)select text property of link
5)in the value portion select the configure value button
6)change the constant value DC4463219(Active)
with .*(Active)
7)select the checkbox Regular expression
8)click ok
9)close object repository
now u run ur script...I am sure it will work fine...
| Is This Answer Correct ? | 0 Yes | 1 No |
How does u create new test sets in TD?
Why we load add-ins in qtp?
Can any body tell me what is the method to connect the remote desk top throw QTP 9.2 version?
how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks
what are the metrics in general we use in testing
Hi let me ask one questin 1.How to use outputof the one function input to the another function pls give the script for above 2.what is the purpose of action parameter , how to create it
We have a text file which contains 1 to 100 numeric values sequentially like 1 2 . . 100 Now we have to count them and transfer to XML file by writing a code in qtp.
if Object repository contain x and y properties. we do not know whether they are mandatory or assistive properties. While executing the script qtp will use both the properties or only sufficient properties to identify the object. It means it use OR (or) AND
Hi frnds, for ex.. we got a job in wipro, they will give me one mail id.. "Rameshkumar@wipro.com", where to open this mail id..in which sw ? or outlook?
wht type of User defined functions or Java Releated functions do we write in VB scripting
WHAT ARE THE DISADVANTAGES OF SHARED REPOSITORY?
Hi guys i'm prepareing for interview question for qtp i don't have bayground for vb scipt language can any one tell me it is easy to do job in qtp without bayground.