As I cannot rely on the exact id for elements in our application, I tried to edit the element as follows :
1. tagname 'is exactly' a
2. id 'matches this regular expression' "splitbutton-([0-9]+)$"
I gave the wait logic which is
bool expextedValue = true;
Pages.Https1013129.Splitbutton1039Link.Wait.ForCondition((a_0, a_1) => (((ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor)(a_0)).IsVisible() == expextedValue), false, null, 30000);
This step failed on running the test as it couldn't find the element.
Then I tried the following method by editing the find logic code as follows
HtmlFindExpression expression = new HtmlFindExpression("id=^splitbutton-([0-9]+)$", "tagname=a");
ActiveBrowser.WaitForElement(expression, 10000, false);
This also didn't work.
Please let me know what I missed in both cases.
Thanks in advance