/dom[@caption~'.*('+'GlobalPay+ -'+')*.']//frame[@name='Middle']//div[#'FuturePaymentsResultsPanel']//table[@class='aggregate-table']//td[@innertext='TR4034358' and @data-bind~'orderConfirmationNumber']//following-sibling::td[@innertext='1']//..//..//..//table//tbody//tr[@class~'.*even-row|.*odd-row']//td[@innertext='TR4034358' and @data-bind~'orderConfirmationNumber']//following-sibling::td[@innertext='1']//..//tr//input
During runtime, however, I cannot find the object using this code:
Code: Select all
Host.Local.TryFindSingle(repositoryItem.AbsolutePath.ToResolvedString(), repositoryItem.SearchTimeout, out inputField);
It's kind of a long story, but Host.Local.TryFindSingle is how I must find objects, this is something we use for all of our object recognition, but I seem to be having problems with this particular object.
There is no change from the page during runtime and using the object spy. I have the page sitting open and I can see the desired object on the page, however it's not found.
The search time out in , repositoryItem.SearchTimeout is 10 seconds.
The path itself is made up from three variables: 'GlobalPay+ - & TR4034358 & 1.
Any thoughts on how this can be? Like I said it finds it instantly in the spy, as soon as I run it, it's not found. All I did was output the value of repositoryItem.AbsolutePath.ToResolvedString() at run time and paste it into the spy, so I'm not sure what the difference could be.
Thanks in advance!
Carson.