| || |
How can i set property value in Recognition tab.
I have the following problem in RFT:
I have object in Test Object, I tried to set object recognition value at runtime (playback) to serve my need, but I face a difficulty.
I can get the Test Object value at runtime by adding the following code in my script (assume objet name is <link_1> :
So the pervious statement will retrieve the value for property named .type that exist in recognition tab for Link_1 object.
but my question is how can I set the property?
This is a description of my scenario:
I have a web application and I recoreded it’s functionality by using more than one version, but the problem was all recorded links objects set .href property based on each version URL.
So if I want to run the scripts on another version, it will try to find the object and without any result , this due that .href property value (URL) is related to the previous version and it is not the same current one.
I tried to solve this problem by define a static variable to define the URL and then pass the value to a set function for the object. Is this case I can just to change URL if I need to playback the script in any version.
Re: How can i set property value in Recognition ta
I can suggest two ways
1. In object map make the URL with Regular Expression for version part. Select Property Right Click Convert Value to RegulaExpression
2. Find the object(Link) using Find Method runtime