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
What are the benefits of quick test pro(qtp)?
Can any suggest me what is exposure testing?
Call to copy of an action and call to existing action… i know the diff but in real project how to use..? i want live scenario.pls help me..
What is the difference between Keyword Driven test and Data Driven test?
In order to select an automation tool for automating ur application, what r the things u need to consider? For eg i will go for automation; 1) When there is a lot of retesting and regression testing. 2) Return on investments. 3) Whether the tool supports the appln. 4)--------------, etc. Pls give me more number of points because my answer did not satisfy the interviewer. Very urgent pls
What are the disadvantages of recording test cases in qtp?
How does quicktest professional (qtp) identifies the object in the application?
How can i click on any Excel sheet's "H" column with out writing coordinates Ex:Window("Book1").WinObject("Book1").Click 498,14 I dont want to give coordinates like 498,14 Can i open "H" column by writing like Ex:Window("Book1").WinObject("Book1").Click "H" or Ex:Window("Book1").WinObject("Book1").Click "H","1" or Ex:Window("Book1").WinObject("Book1").Click H,1 If i want to click on "Sheet3" of an excel sheet, Can i open like Ex:Window("Book1").WinObject("Book1").Click "Sheet3" Please help me any one
Give the syntax to import/export xls into qtp.
When to use shared and local object repository?
What is difference between design time and run time data table?
What is the short cut keys for the following?
What is Curd testing?
How to attach a file to TD?
What are the methods used in UFT to handle exceptions or run-time errors?