How to validate a TextField in Silverlight
Posted: Thu Jul 21, 2011 1:22 pm
Hi,
I have something like this:
Account Balance Old: 100$
Account Balance New: 200$
With spy I can identify the following:
Text1 -> Account Balance Old
Text2 -> 100
Text3 -> $
Text4 -> Account Balance New
Text5 -> 200
Text6 -> $
100 and 200 are calculated by the application. So I want different test-cases with for example 100,200 - 50,100 - 20,40 and so on. So I have to identify the text fields with the money without knowing something about the value.
My XPath looks like this:
Then in Spy all following text fields are shown yellow. In Studio nothing works. The item "100" is not found.
I am very new to Ranorex and C#. Is it possible to identify an object with neighbour objects? How does it work?
I have something like this:
Account Balance Old: 100$
Account Balance New: 200$
With spy I can identify the following:
Text1 -> Account Balance Old
Text2 -> 100
Text3 -> $
Text4 -> Account Balance New
Text5 -> 200
Text6 -> $
100 and 200 are calculated by the application. So I want different test-cases with for example 100,200 - 50,100 - 20,40 and so on. So I have to identify the text fields with the money without knowing something about the value.
My XPath looks like this:
Code: Select all
/................./container/text[@text='Account Balance']/following-sibling::text/
I am very new to Ranorex and C#. Is it possible to identify an object with neighbour objects? How does it work?