Variable value not updating when running test
Posted: Wed Aug 15, 2012 1:26 pm
In a recording I have added a variable:
Name Value
Var#1 Form Title One
I use this in an objects path to validate that a form title bar is displaying the correct text:
Object Path
Titlebar titlebar[@accessiblerole='TitleBar' and @text=$Var#1]
Now I have updated my application form title to Form Title Two so I change Var#1:
Name Value
Var#1 Form Title Two
When I select highlight to find the object it fails, the value it is looking for is still:
titlebar[@accessiblerole='TitleBar' and @text='Form Title One']
I can verify the path contains the correct variable - if i edit the variable Var#1 and change it to Var#2 then the value in the object path is automatically updated to titlebar[@accessiblerole='TitleBar' and @text=$Var#2]
but it still keeps searching for "Form Title One" instead of the variables new value which is "Form Title Two"
(when it is searching for the object I look at the tooltip on the searching for elements popup)
Can you point out what I am doing wrong to update the variable value please?
thanks
Name Value
Var#1 Form Title One
I use this in an objects path to validate that a form title bar is displaying the correct text:
Object Path
Titlebar titlebar[@accessiblerole='TitleBar' and @text=$Var#1]
Now I have updated my application form title to Form Title Two so I change Var#1:
Name Value
Var#1 Form Title Two
When I select highlight to find the object it fails, the value it is looking for is still:
titlebar[@accessiblerole='TitleBar' and @text='Form Title One']
I can verify the path contains the correct variable - if i edit the variable Var#1 and change it to Var#2 then the value in the object path is automatically updated to titlebar[@accessiblerole='TitleBar' and @text=$Var#2]
but it still keeps searching for "Form Title One" instead of the variables new value which is "Form Title Two"
(when it is searching for the object I look at the tooltip on the searching for elements popup)
Can you point out what I am doing wrong to update the variable value please?
thanks