Hi ,
I have an element with following properties
Name= TestMenuMnActiveListItem (element added by highlighting and using option Add to Elements)
ControlType = Telerik.TestingFrameworks.Controls.KendoUI.KendoMenuite
Expression : "data-role=menu,|,TagName=li,InnerText=^Sales,class=k-item k-state-default rootMenuItem"
When I run the recorded step 'Click TestMenuMnActiveListItem' it works ok.
But I want to find this element through code and then click it so as to be able to make a reusable test for multiple menu items.
I used the below code but it doesn't recognize the element. Can you please help me in fixing this.
Dim
MenuExpr as
New
HtmlFindExpression(
"data-role=menu"
,
"|"
,
"TagName=li"
,
"InnerText=^Sales"
,
"class=k-item k-state-default rootMenuItem"
)
Dim
MenuItem as KendoMenuItem = Pages.HttpsWwwRambase1.Find.ByExpression(of KendoMenuItem)(MenuExpr )
MenuItem .Click
Thanks,
Sprithi