Skip to main content
All docs
V25.1
  • .NET 8.0+

    DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    ApplicationContextExtensions.Navigate(IApplicationContext, String) Method

    Opens a specified navigation item.

    Namespace: DevExpress.EasyTest.Framework

    Assembly: DevExpress.EasyTest.v25.1.dll

    NuGet Package: DevExpress.EasyTest

    #Declaration

    public static bool Navigate(
        this IApplicationContext context,
        string itemName
    )

    #Parameters

    Name Type Description
    context IApplicationContext

    The application’s context.

    itemName String

    A navigation item name.

    #Returns

    Type Description
    Boolean

    true if a specified navigation item was opened successfully; otherwise, false.

    #Remarks

    The code sample below demonstrates a test code that logs in the tested application and navigates to a Roles view.

    [Theory]
    [InlineData(BlazorAppName)]
    [InlineData(WinAppName)]
    public void ValidateRole(string applicationName) {
        FixtureContext.DropDB(MainDemoDBName);
        var appContext = FixtureContext.CreateApplicationContext(applicationName);
        appContext.RunApplication();
        appContext.GetForm().FillForm(("User Name", "Sam"));
        appContext.GetAction("Log In").Execute();
        appContext.Navigate("Roles");
    
        // ...
    }
    
    See Also