This project is read-only.
1

Closed

ToolStrip Button Click

description

Hi,
i have a application which consists of Toolstrip and a couple of ToolStrip Button in it.
Iam able to access Toolstrip which is not null but am unable to get 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
Closed Jul 28, 2013 at 1:34 PM by JakeGinnivan
Please report the issue on GitHub (https://github.com/TestStack/White) if it is still an issue. Issues raised on CodePlex will not be fixed.
Also include the version of TestStack.White you are using.

Thanks!

comments

Roopa123 wrote Nov 23, 2011 at 5:55 AM

Sorry for repeating same. # 11467

wrote Feb 22, 2013 at 1:22 AM

wrote Jul 28, 2013 at 1:34 PM