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 TestCase

To enable Sauce Labs testing, extend SauceLabsTestCase To enable local testing, extend SeleniumTestCase

Sauce\Sausage\WebDriverTestCase
Extended by Azalea\Selenium\Toolkit\SauceLabsTestCase
Extended by Azalea\Selenium\Toolkit\TestCase

Direct known subclasses

Azalea\Selenium\App\ApplicationTestCase

Indirect known subclasses

AddPatientTest, ChartAssessmentTest, ChartProviderAccessTest, ChartSigningTest, ChartsListProviderAccessTest, ChartSmokingStatusTest, ChartSubjectiveTest, EncounterClaimsTest, EncounterDemographicsTest, EncounterDiagnosisTest, EncounterGuarantorTest, EncounterLedgerTest, ChartCustomFieldBehaviorsTest, EncounterProceduresTest, ExampleTestCase, MessagesLabelsTest, PatentsListTest, PatientAccountSummaryTest, PatientBillingActionsTest, PatientCommentsTest, PatientDashboardAlertsTest, PatientDashboardLinkedPatientsTest, PatientDemographicsEditTest, ChartDiagnosisTest, PatientDocumentsTest, PatientPopupCommentsTest, PatientProviderAccessTest, PatientsListProviderAccessTest, PopupTest, SchedulerBlocksTest, SchedulerInsuranceBlocksTest, ChartEncounterDiagnosisTest, ChartEncounterProceduresTest, ChartInventoryTest, ChartObjectiveTest, ChartProblemHistoryTest, ChartProceduresTest
Namespace: Azalea\Selenium\Toolkit
Located at selenium/Toolkit/TestCase.php
Methods summary
public
# setUpPage( )

Override

Overrides

Azalea\Selenium\Toolkit\SauceLabsTestCase::setUpPage()
public
# within( string $selector, Closure $callback )

Narrow the test content to a specific area of the page.

Narrow the test content to a specific area of the page.

Parameters

$selector
$callback

Returns


$this
public Azalea\Selenium\Toolkit\View
# getView( string $path, $args = array() )

Loads a view object by the given resource path relative to the views directory.

Loads a view object by the given resource path relative to the views directory.

Parameters

$path
$args

Returns

Azalea\Selenium\Toolkit\View
public
# wait( integer $timeout = 5 )

Pause execution for $timeout seconds.

Pause execution for $timeout seconds.

Parameters

$timeout

Returns


$this
public
# clickAndWait( integer $element, $timeout = 2 )

Clicks the element and then sleeps for a specified number of seconds. Useful for waiting on the UI to update dynamically.

Clicks the element and then sleeps for a specified number of seconds. Useful for waiting on the UI to update dynamically.

Parameters

$element
$timeout
$timeout
public
# waitForHash( sttring $hash, integer $timeout = 30 )

Waits for the window.location.hash value to match the pattern given by $hash for up to $timeout seconds.

Waits for the window.location.hash value to match the pattern given by $hash for up to $timeout seconds.

Parameters

$hash
Regex pattern to match
$timeout

Returns


$this
public
# spinWait( function $test, integer $timeout = 30 )

Parameters

$test
$timeout

Throws

Azalea\Selenium\Toolkit\Exception\TimeoutException
public mixed
# __call( string $method, array $args )

Calls the method on the active dom object, if it exists.

Calls the method on the active dom object, if it exists.

Parameters

$method
$args

Returns

mixed
Methods inherited from Azalea\Selenium\Toolkit\SauceLabsTestCase
browsers(), setMetaData(), setUp()
Properties summary
protected Azalea\Selenium\Toolkit\Dom $dom
# null
protected array $nestedSelectors
# array()
Properties inherited from Azalea\Selenium\Toolkit\SauceLabsTestCase
$base_url, $browsers, $tags
API documentation generated by ApiGen