Button in toolstrip is not retrieved

Nov 22, 2011 at 10:31 AM
Edited Nov 23, 2011 at 4:50 AM

Hi,

Iam new to White.

I have a application which consists of a toolstrip and a couple of toolstrip buttons in it. Iam able to access toolstrip which shows it is not null but iam unable to retrieve the toolstrip button. it is returning null.

Application Details:

C# application

White.Nunit

Snippet:

SearchCriteria searchCriteria = SearchCriteria.ByAutomationId("toolStrip");
ToolStrip toolStrip1 = childWindowMobile.Get<ToolStrip>("toolStrip");
Assert.IsNotNull(toolStrip1);
SearchCriteria searchCriteria1 = SearchCriteria.ByAutomationId("toolStripButtonHelp");
Button toolbutton = toolStrip1.Get<Button>("toolStripButtonHelp");
Assert.IsNotNull(toolbutton);
toolbutton.Click();
Error:
TestClass.Class1.MobileAppLogin:
Expected: not null
But was: null
Can any one please help me out

Iam trying this since 2 days. Can anyone Please help me out?