Function getValueByXpath

  • Returns the value of a form element by XPath.

    Parameters

    • ctx: Context

      Context object.

    • selector: string

      The element XPath selector for which to return value.

    Returns Promise<null | string>

    The value of the form element as a string.

    Example

    const clientEmail = await getValueByXpath(ctx, '//input[@id="email"]');
    

Generated using TypeDoc