Skip to content

Commit bd14e66

Browse files
committed
[imp] Locator getter
1 parent 3b3e9b6 commit bd14e66

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/JoomlaBrowser.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,24 @@ class JoomlaBrowser extends WebDriver
5050
*/
5151
protected $locator;
5252

53+
/**
54+
* Getting a locator path from $this->locator (Locators)
55+
*
56+
* @param string $locator Locator to get
57+
*
58+
* @return mixed|false
59+
* @since 3.8.11
60+
*/
61+
public function getLocatorPath($locator)
62+
{
63+
if (!isset($this->locator->$locator))
64+
{
65+
return false;
66+
}
67+
68+
return $this->locator->$locator;
69+
}
70+
5371
/**
5472
* Module constructor.
5573
*

0 commit comments

Comments
 (0)