Space in Hyperlink InnerText

May 9, 2012 at 9:41 AM

Hello Everyone!

I've got a problem with hyperlink recorded using CUITe.

Definition:

public CUITe_HtmlHyperlink lnkNewCart = new CUITe_HtmlHyperlink("InnerText=New cart ");

When I use this control in test script, I always get error 'Failed to find any control that matched the value New cart for the search property InnerText.'

I'm 100% sure that this link is visible, and enabled on web page.
Have any of you met same problem? Is there any workaround ?

Best regards,
Jakub

May 9, 2012 at 10:06 AM

They said: "Answers come when you ask the question".

SetSearchPropertyRegx is a good solution.

 

Best regards