Overview

Namespaces

  • Azalea
    • Selenium
      • App
        • Charts
        • Components
        • Encounters
        • Home
        • Login
        • Main
        • Messages
        • Patients
        • Scheduler
      • Core
      • EHR
        • UI
          • Charts
          • Documents
          • Encounters
          • Home
          • Messaging
            • Folders
          • Patients
          • Payments
          • Precerts
          • Reports
          • Scheduler
          • Settings
            • General
              • Locations
              • Roles
              • Users
        • User
      • Login
        • UI
      • PHR
        • UI
        • User
      • Toolkit
        • Exception
        • Validation
    • Util
  • None
  • tests
    • integration
      • barebones
        • controllers
          • charts
          • patients
          • system
        • models
          • billing
          • encounters
          • examples
          • messaging
          • rcm
          • system
    • unit
      • barebones
        • lib
        • utilities
          • calculations

Classes

  • Application
  • EHR
  • EHRTestCase
  • EMR
  • PM
  • Overview
  • Namespace
  • Class

Class Application

Page object which serves as a base to all applications.

Azalea\Selenium\Core\WebDriver
Extended by Azalea\Selenium\Core\Page
Extended by Azalea\Selenium\EHR\Application

Direct known subclasses

Azalea\Selenium\EHR\EHR, Azalea\Selenium\EHR\EMR, Azalea\Selenium\EHR\PM
Namespace: Azalea\Selenium\EHR
Located at lib/src/Azalea/Selenium/EHR/Application.php
Methods summary
public static Azalea\Test\Core\Page
# login( Azalea\Test\TestCase\BaseTestCase $driver, string $email, string $password )

Logs into the application with the given credentials.

Logs into the application with the given credentials.

Parameters

$driver
$email
$password

Returns

Azalea\Test\Core\Page

Throws

InvalidArgumentException
public static Azalea\Test\Core\Page
# loginAs( Azalea\Test\TestCase\BaseTestCase $driver, Azalea\Test\Util\User $user )

Logs into the application with the given User.

Logs into the application with the given User.

Parameters

$driver
$user

Returns

Azalea\Test\Core\Page

Throws

InvalidArgumentException
public Azalea\Selenium\EHR\UI\LockScreen
# lockScreen( )

Locks the application screen.

Locks the application screen.

Returns

Azalea\Selenium\EHR\UI\LockScreen
public Azalea\Selenium\Login\LoginPage
# logout( )

Logs out of the application by completing the log out user interaction sequence.

Logs out of the application by completing the log out user interaction sequence.

Returns

Azalea\Selenium\Login\LoginPage
public Azalea\Selenium\EHR\UI\MainMenu
# getMainMenu( )

Returns the application's main menu instance.

Returns the application's main menu instance.

Returns

Azalea\Selenium\EHR\UI\MainMenu
public Azalea\Selenium\EHR\UI\MainSearch
# getMainSearch( )

Returns the application's main search instance.

Returns the application's main search instance.

Returns

Azalea\Selenium\EHR\UI\MainSearch
public Azalea\Selenium\EHR\UI\Notifications
# getNotifications( )

Returns the application's notifications instance.

Returns the application's notifications instance.

Returns

Azalea\Selenium\EHR\UI\Notifications
public Azalea\Selenium\Core\User
# getUser( )

Returns the session's active user.

Returns the session's active user.

Returns

Azalea\Selenium\Core\User
public
# setUser( Azalea\Selenium\Core\User $user )

Sets the session's active user.

Sets the session's active user.

Parameters

$user
public boolean
# isErrorPopup( string $text = null )

Returns true if there is an error popup displayed on the screen. Optionally, if $text is supplied, it will compare the popup's text with $text and return true only if they are a match

Returns true if there is an error popup displayed on the screen. Optionally, if $text is supplied, it will compare the popup's text with $text and return true only if they are a match

Parameters

$text

Returns

boolean
public
# closeAllPopups( )

Closes all popups that are visible on the screen, if any.

Closes all popups that are visible on the screen, if any.

public boolean
# isHazeScreenVisible( )

Returns true if the haze screen is visible on the page.

Returns true if the haze screen is visible on the page.

Returns

boolean
public boolean
# isHazeScreenNotVisible( )

Returns true if the haze screen is NOT visible on the page.

Returns true if the haze screen is NOT visible on the page.

Returns

boolean
public boolean
# reVerify( )

Reruns the application's verification and returns true if it passes.

Reruns the application's verification and returns true if it passes.

Returns

boolean

Throws

RuntimeException
public
# getSessionKey( Azalea\Test\TestCase\BaseTestCase $driver,… )

Extracts the ahis session key from the browser's url and saves it on the application object.

Extracts the ahis session key from the browser's url and saves it on the application object.

Parameters

$driver,…
protected boolean
# verify( )

Called by the Page class to verify that we are on the correct page.

Called by the Page class to verify that we are on the correct page.

Returns

boolean

Overrides

Azalea\Selenium\Core\Page::verify()
Methods inherited from Azalea\Selenium\Core\Page
checkTitle(), get(), title()
Methods inherited from Azalea\Selenium\Core\WebDriver
__call(), __construct(), clickAndWait(), displayed(), displayedById(), exists(), existsById(), getCurrentHash(), getDriver(), getElementsByCss(), setDriver(), spinWait(), updateHash(), wait()
Constants summary
string APPLICATION_CONTAINER_ID
# "main_view"
Properties summary
protected string $heading

$heading To be set by child class

$heading To be set by child class

# ""
protected Azalea\Selenium\Core\User $user

$user The active user

$user The active user

# null
protected integer $timeout

$timeout Timeout for verifying page contents

$timeout Timeout for verifying page contents

# 60
Properties inherited from Azalea\Selenium\Core\WebDriver
$driver
API documentation generated by ApiGen