Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XrmUiTest

Main class for testing in D365

Hierarchy

  • XrmUiTest

Index

Constructors

constructor

Accessors

AppId

  • get AppId(): string
  • set AppId(value: string): void
  • Gets the currently opened AppId

    Returns string

  • Sets the currently opened AppId. Is set automatically by calling Navigation.openAppById

    Parameters

    • value: string

    Returns void

Attribute

Button

Control

  • Gets the subfunctions for interacting with controls in D365, for example getting visibility or disable states

    Returns Control

Dialog

  • Gets the subfunctions for interacting with dialogs in D365, for example duplicate detection dialogs

    Returns Dialog

Entity

Form

  • Gets the subfunctions for interacting with forms in D365, for example opening different forms

    Returns Form

Grid

  • Gets the subfunctions for interacting with grids / entity lists in D365, for example opening specific records

    Returns Grid

Navigation

Section

  • Gets the subfunctions for interacting with sections in D365, for example getting its visibility state

    Returns Section

SubGrid

  • Gets the subfunctions for interacting with subgrids in D365, for example refreshing or opening specific records

    Returns SubGrid

Tab

  • get Tab(): Tab

WebApi

browser

  • get browser(): Browser
  • Gets the browser object that was generated when launching playwright

    Returns Browser

context

  • get context(): BrowserContext

crmUrl

  • get crmUrl(): string

page

  • get page(): Page

settings

Methods

buildUrl

  • buildUrl(url: string, appId?: string): string

close

  • close(): Promise<void>

launch

  • launch(browser?: "chromium" | "firefox" | "webkit", launchOptions?: LaunchOptions, contextOptions?: BrowserContextOptions): Promise<[Browser, BrowserContext, Page]>
  • Function for launching a playwright instance

    remarks

    viewport in launchOptions is preset to null for using your clients default resolution. Overwrite viewport to change.

    Parameters

    • Default value browser: "chromium" | "firefox" | "webkit" = "chromium"
    • Optional launchOptions: LaunchOptions
    • Optional contextOptions: BrowserContextOptions

    Returns Promise<[Browser, BrowserContext, Page]>

    Started browser instance, browser context and page

open

  • open(url: string, extendedProperties: OpenProperties): Promise<void>
  • Opens your D365 organization and logs you in

    Parameters

    • url: string

      Url of your D365 organization

    • extendedProperties: OpenProperties

      Options for logging in. User name and password are required. If you have a custom authentication page, you should pass userNameFieldSelector if user name has to be reentered and passwordFieldSelector for password entry. These are css selectors for the inputs.

    Returns Promise<void>

    Resolves as soon as D365 is logged in and open

waitForIdleness

  • waitForIdleness(): Promise<void>

Generated using TypeDoc