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

  • Dom
  • NestedHashMap
  • ResourceLoader
  • SauceLabsTestCase
  • SeleniumTestCase
  • TestCase
  • View
  • Overview
  • Namespace
  • Class

Class View

Direct known subclasses

Azalea\Selenium\App\Charts\Chart, Azalea\Selenium\App\Charts\ChartAssessment, Azalea\Selenium\App\Components\Popup, Azalea\Selenium\App\Encounters\Encounter, Azalea\Selenium\App\Encounters\EncounterDiagnosisCodes, Azalea\Selenium\App\Encounters\EncounterLedger, Azalea\Selenium\App\Encounters\EncounterProcedureCodes, Azalea\Selenium\App\Encounters\Encounters, Azalea\Selenium\App\Home\Home, Azalea\Selenium\App\Login\LoginPage, Azalea\Selenium\App\Main\MainSearch, Azalea\Selenium\App\Messages\Messages, Azalea\Selenium\App\Charts\ChartDiagnosisCodes, Azalea\Selenium\App\Patients\Patient, Azalea\Selenium\App\Patients\PatientCharts, Azalea\Selenium\App\Patients\PatientEditDemographicsForm, Azalea\Selenium\App\Patients\PatientEncounters, Azalea\Selenium\App\Patients\PatientList, Azalea\Selenium\App\Patients\PatientListFilters, Azalea\Selenium\App\Patients\Patients, Azalea\Selenium\App\Scheduler\AppointmentPopup, Azalea\Selenium\App\Scheduler\Scheduler, Azalea\Selenium\App\Charts\ChartListControls, Azalea\Selenium\App\Charts\ChartObjective, Azalea\Selenium\App\Charts\ChartProcedureCodes, Azalea\Selenium\App\Charts\Charts, Azalea\Selenium\App\Charts\ChartSubjective, Azalea\Selenium\App\Components\CodeLookup, Azalea\Selenium\App\Components\CollectionGrid
Namespace: Azalea\Selenium\Toolkit
Located at selenium/Toolkit/View.php
Methods summary
public
# __construct( $driver, $config, $args = array() )

Construct a new View.

Construct a new View.

Throws

InvalidArgumentException
public string
# getName( )

Gets the name of the view.

Gets the name of the view.

Returns

string
public Azalea\Selenium\Toolkit\View
# getParent( )

Gets a parent view object.

Gets a parent view object.

Returns

Azalea\Selenium\Toolkit\View
public arra
# getArgs( )

Gets the view arguments.

Gets the view arguments.

Returns

arra
public
# setArgs( array $args )

Sets the view arguments.

Sets the view arguments.

Parameters

$args

Returns


$this
public arra
# getScope( )

Gets the scoping rule for this view.

Gets the scoping rule for this view.

Returns

arra
public
# setScope( string $selector )

Scopes this view to the given selector.

Scopes this view to the given selector.

Parameters

$selector

Returns


$this
public
# clearCache( )

Clear cached properties. This can be used if the underlying DOM elements have changed and you have stale child views.

Clear cached properties. This can be used if the underlying DOM elements have changed and you have stale child views.

Returns


$this
public string
# getUrl( )

Gets the view's url value, if any.

Gets the view's url value, if any.

Returns

string
public string
# getHash( array $args = array() )

Gets the view's hash value, if any.

Gets the view's hash value, if any.

Parameters

$args

Returns

string
public
# navigate( array $args,… )

Opens the view by either navigating the browser to its url or setting the browser to tis hash value (in that order).

Opens the view by either navigating the browser to its url or setting the browser to tis hash value (in that order).

Hash values can accept an optional argument map.

If neither a url or a hash value are define then this will do nothing.

Parameters

$args,…

Returns


$this;
public boolean
# isVisible( )

Returns true if the view is visible.

Returns true if the view is visible.

Returns

boolean
public
# within( $callback )
public boolean
# verify( )

Verify that the view is loaded in the browser.

Verify that the view is loaded in the browser.

Returns

boolean
public
# verifyAndWait( integer $timeout = 30 )

Verify that the view is loaded in the browser. Waits up to $timeout seconds.

Verify that the view is loaded in the browser. Waits up to $timeout seconds.

Parameters

$timeout
protected
# parseViewConfig( array $config )

Parses the view config information.

Parses the view config information.

Parameters

$config

Throws

InvalidArgumentException
protected
# extend( $extend )

Extend from another view.

Extend from another view.

public mixed
# __get( string $name )

Resolve a view property.

Resolve a view property.

Parameters

$name

Returns

mixed
public mixed
# __call( string $method, array $args )

Calls the method on the active dom or driver object.

Calls the method on the active dom or driver object.

Parameters

$method
$args

Returns

mixed
Properties summary
public string $el
# ""
protected array $view
# array()
protected $parent
# null
protected $dom
# null
protected array $cachedProperties
# array()
API documentation generated by ApiGen