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 Posted / 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 |
Post New Answer View All Answers
How to find array size in qtp?
How to carry out bit map check points in QTP
What is test object model in quicktest professional?
i am trying to automate yatra.com,in that site, when i go to automate the Leaving from field showing as a WEBEDIT, but when i enter 1 or 2 char, it displaying dropdownlist, i try to use keyboard automation to select the item from that list but it is not possible, can anybody help he. Thans for posting the Answer
How many scripts did you have?
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.
banking domain description for software tester for interview
Hi, can explain the draw back of manual testing.plz send me the answer to my mail id deepthip1985@gmail.com
What is data driver in qtp? Where we use it?
Does QTP record on Objects created on XWindows Environment?
how to test Web application using QTP software
How do you perform Regreession Testing?
why text area checkpoints cannot used for web applications
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
Is the qtp course will help to create a virtual object?