james_attree
10 years agoOccasional Contributor
Using Find() to map the same object causes it to be unobtainabe
I have a wepage, 'a'. On 'a' is a link that goes to webpage 'b'.
I map the link on 'a' by using Find(). This maps it to a variable.
I then call variable.Click() to go to page 'b'.
When I go back to webpage 'a' (later in the test) and I want to click on the same link I am unable to use the previous variable as I get an error 'Unable to obtain item's rectangle'.
I have tried re-mapping the link using the same Find() buy to no avail.
Am I doing something fundamentally wrong?
Many thanks,
James
I map the link on 'a' by using Find(). This maps it to a variable.
I then call variable.Click() to go to page 'b'.
When I go back to webpage 'a' (later in the test) and I want to click on the same link I am unable to use the previous variable as I get an error 'Unable to obtain item's rectangle'.
I have tried re-mapping the link using the same Find() buy to no avail.
Am I doing something fundamentally wrong?
Many thanks,
James