class Selenium::WebDriver::FedCM::Dialog

def accounts

If this is an auto reauth dialog, returns the single account that is being signed in.

Returns the accounts shown in the account chooser.
def accounts
  @bridge.fedcm_account_list.map { |account| Account.new(**account) }
end

def cancel

Closes the dialog as if the user had clicked X.
def cancel
  @bridge.cancel_fedcm_dialog
end

def click

Closes the dialog as if the user had clicked X.
def click
  @bridge.click_fedcm_dialog_button
end

def initialize(bridge)

def initialize(bridge)
  @bridge = bridge
end

def select_account(index)

Parameters:
  • index (Integer) -- The index of the account to select from the list returned by get_accounts.
def select_account(index)
  @bridge.select_fedcm_account index
end

def subtitle

Returns the subtitle of the dialog or nil if none.
def subtitle
  @bridge.fedcm_subtitle
end

def title

Returns the title of the dialog.
def title
  @bridge.fedcm_title
end

def type

One of DIALOG_TYPE_ACCOUNT_LIST and DIALOG_TYPE_AUTO_REAUTH.

Returns the type of the open dialog.
def type
  @bridge.fedcm_dialog_type
end