diff --git a/src/JoomlaBrowser.php b/src/JoomlaBrowser.php index 16dd9dc..a24df50 100644 --- a/src/JoomlaBrowser.php +++ b/src/JoomlaBrowser.php @@ -99,6 +99,24 @@ protected function instantiateLocator() $this->locator = new $class; } + /** + * Locator getter + * + * @param string $path Locator to get + * + * @return mixed|false + * @since 3.8.11 + */ + public function getLocatorPath($path) + { + if (!isset($this->locator->$path)) + { + return false; + } + + return $this->locator->$path; + } + /** * Function to Do Admin Login In Joomla! *