Skip to main content
Ctrl+K
CIT Services Dev Manual - Home CIT Services Dev Manual - Home
  • CIT Services Test Suite
  • Functions
    • CIT App Helpers
    • Address Helper Functions
    • Safe Fill Address Functions
    • Safe Fill Wrapper Functions
    • Billing Functions
    • Button Functions
    • Calendar Functions
    • Common Functions
    • Dialog Functions
    • Download Actions
    • Dropdown Functions
    • Investment Functions
    • Verification Check Functions
    • Settings Helpers
    • Test Utils
    • Index Link Utils
    • Email Template Components
    • Utilities
    • Address Components
    • Common Legal Functions
    • Contact Legal Functions
    • Common User Functions
    • Permissions Functions
    • Address Types
    • App Interface Types
  • Playwright Automation Testing Suite (API)
    • Pages
      • Profile Tests
      • User Tests
      • Common Page Tests
    • Functions
      • CIT App Helpers
      • Address Helper Functions
      • Safe Fill Address Functions
      • Safe Fill Wrapper Functions
      • Billing Functions
      • Button Functions
      • Calendar Functions
      • Common Functions
      • Dialog Functions
      • Download Actions
      • Dropdown Functions
      • Investment Functions
      • Verification Check Functions
      • Settings Helpers
      • Test Utils
      • Index Link Utils
      • Email Template Components
      • Utilities
      • Address Components
      • Common Legal Functions
      • Contact Legal Functions
      • Common User Functions
      • Permissions Functions
      • Address Types
      • App Interface Types
  • Repository
  • Suggest edit
  • Open issue

Dropdown Functions

  • safeClickWithDelayMatSelect
    • safeClickWithDelayMatSelect()
  • selectDropdown
    • dropdowns.selectDropdown()
  • selectDropdownValue
    • selectDropdownValue()
  • selectMatOption
    • selectMatOption()
  • selectStatusDropdown
    • selectStatusDropdown()
  • setItemsPerPage
    • setItemsPerPage()
  • setSponsorOrgItemsPerPage
    • setSponsorOrgItemsPerPage()
  • setSponsorOrgStatus
    • setSponsorOrgStatus()

Dropdown Functions#

This section documents dropdown functions used in the automation testing suite.

safeClickWithDelayMatSelect#

safeClickWithDelayMatSelect(page, dropDownName, optionName, delayMs)#

Opens the <mat-select> by label and picks the desired option, then waits for the overlay/backdrop to close.

Arguments:
  • page (Page)

  • dropDownName (string)

  • optionName (string)

  • delayMs (number)

Returns:

Promise –

selectDropdown#

dropdowns.selectDropdown(page, dropdownTitle)#
Arguments:
  • page (Page)

  • dropdownTitle (string)

Returns:

Promise –

selectDropdownValue#

selectDropdownValue(page, identifier, dropdownLabel, options)#

selectDropdownValue

Enhanced dropdown value selection with overlay handling and multiple strategies.

Arguments:
  • page (Page) – Playwright page object

  • identifier (string) – The option text to select (e.g. “All”, “Paid”)

  • dropdownLabel (string) – Optional dropdown label for specific dropdown targeting

  • options – Configuration options

Returns:

Promise –

selectMatOption#

selectMatOption(page, labelText, optionName, delayMs)#

Reliably selects an Item Type from the <mat-select> by label, then picks the desired option, and waits for the backdrop to close.

Arguments:
  • page (Page)

  • labelText (string)

  • optionName (string)

  • delayMs (number)

Returns:

Promise –

selectStatusDropdown#

selectStatusDropdown(page, dropdownTitle, optionToSelect, dropdownIndex)#

Selects a dropdown option by label, supporting multiple identical dropdowns via index.

Arguments:
  • page (Page) – Playwright page object

  • dropdownTitle (string) – Visible label/title of the dropdown

  • optionToSelect (string) – Option text to select

  • dropdownIndex (number) – (Optional) Index of the dropdown if multiple exist

Returns:

Promise –

setItemsPerPage#

setItemsPerPage(page, itemCount, timeoutMs)#

Set items per page using the pagination combobox. Works on any page with a pagination control.

Arguments:
  • page (Page) – Playwright page object

  • itemCount (string) – Number of items per page (‘10’, ‘25’, ‘50’, ‘100’)

  • timeoutMs (number) – Timeout in ms (default: 8000)

Returns:

Promise –

setSponsorOrgItemsPerPage#

setSponsorOrgItemsPerPage(page, itemCount)#

Set items per page for sponsor org table

Arguments:
  • page (Page)

  • itemCount (string)

Returns:

Promise –

setSponsorOrgStatus#

setSponsorOrgStatus(page, status, dropdownTitle)#

Set status filter for sponsor organizations

Arguments:
  • page (Page)

  • status (string)

  • dropdownTitle (string)

Returns:

Promise –

previous

Download Actions

next

Investment Functions

  • safeClickWithDelayMatSelect
    • safeClickWithDelayMatSelect()
  • selectDropdown
    • dropdowns.selectDropdown()
  • selectDropdownValue
    • selectDropdownValue()
  • selectMatOption
    • selectMatOption()
  • selectStatusDropdown
    • selectStatusDropdown()
  • setItemsPerPage
    • setItemsPerPage()
  • setSponsorOrgItemsPerPage
    • setSponsorOrgItemsPerPage()
  • setSponsorOrgStatus
    • setSponsorOrgStatus()

© Copyright 2025, Transfer Online..