This project is read-only.

Using regular expression to find a control

Dec 19, 2011 at 8:00 AM

Hi,

The control I want to find has an integer value which appears in the middle of the id string and this integer keeps on changing with referesh.

Control information:-

Public Addresses_Footer_New As New CUITe_HtmlCell("Id=gridPanel_ctl42_cellNew")


I have another control in same page with id:-

Public celNew As New CUITe_HtmlCell("Id=ctl00_PlaceHolderMain_OrgUnitParent_ctl210_cellNew")


I want to use regular expression to find these controls.

Using below code
OrgNewobj.Addresses_Footer_New.SetSearchPropertyRegx("id","cellNew")

clearly does'nt solve my problem. I have to use something like:- "gridPanel_ct" & [0-9]* & "_cellNew" as regular expression. But don't know the correct way to do so.

Could anyone help please?

Thanks,

Divya

 

Dec 20, 2011 at 5:34 AM

This is urgent. Could anyone please reply with a solution.

Thanks.

Dec 21, 2011 at 3:09 PM

For now we have only "SetSearchPropertyRegx" option which uses "Contains" logic.

I can see if support for "StartsWith", "EndsWith" or pure-Regx can be added in the next version.

But, surely that will take time.

Please file a workitem in the Issue Tracker (http://cuite.codeplex.com/workitem/list/basic).

--Suresh Bala