Skip to content

Commit 67cdedd

Browse files
committed
[imp] Locator getter
1 parent bd14e66 commit 67cdedd

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/JoomlaBrowser.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -50,24 +50,6 @@ 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-
7153
/**
7254
* Module constructor.
7355
*
@@ -117,6 +99,24 @@ protected function instantiateLocator()
11799
$this->locator = new $class;
118100
}
119101

102+
/**
103+
* Locator getter
104+
*
105+
* @param string $locator Locator to get
106+
*
107+
* @return mixed|false
108+
* @since 3.8.11
109+
*/
110+
public function getLocatorPath($locator)
111+
{
112+
if (!isset($this->locator->$locator))
113+
{
114+
return false;
115+
}
116+
117+
return $this->locator->$locator;
118+
}
119+
120120
/**
121121
* Function to Do Admin Login In Joomla!
122122
*

0 commit comments

Comments
 (0)