File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public function element($using = null, $value = null)
84
84
);
85
85
}
86
86
87
- $ element = $ this ->webDriverElement ($ result ['value ' ]);
87
+ $ element = $ this ->makeElement ($ result ['value ' ]);
88
88
89
89
if ($ element === null ) {
90
90
throw WebDriverException::factory (
@@ -128,7 +128,7 @@ public function elements($using = null, $value = null)
128
128
129
129
return array_filter (
130
130
array_map (
131
- array ($ this , 'webDriverElement ' ),
131
+ array ($ this , 'makeElement ' ),
132
132
$ result ['value ' ]
133
133
)
134
134
);
@@ -201,13 +201,13 @@ public function locate($using, $value)
201
201
}
202
202
203
203
/**
204
- * Return WebDriver\Element wrapper for $value
204
+ * Factory method for elements
205
205
*
206
206
* @param mixed $value
207
207
*
208
208
* @return \WebDriver\Element|null
209
209
*/
210
- protected function webDriverElement ($ value )
210
+ protected function makeElement ($ value )
211
211
{
212
212
if (array_key_exists (LegacyElement::LEGACY_ELEMENT_ID , (array ) $ value )) {
213
213
$ identifier = $ value [LegacyElement::LEGACY_ELEMENT_ID ];
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ protected function serializeArguments(array $arguments)
112
112
*/
113
113
protected function unserializeResult ($ result )
114
114
{
115
- $ element = is_array ($ result ) ? $ this ->webDriverElement ($ result ) : null ;
115
+ $ element = is_array ($ result ) ? $ this ->makeElement ($ result ) : null ;
116
116
117
117
if ($ element !== null ) {
118
118
return $ element ;
@@ -128,13 +128,13 @@ protected function unserializeResult($result)
128
128
}
129
129
130
130
/**
131
- * Return WebDriver\Element wrapper for $value
131
+ * Factory method for elements
132
132
*
133
133
* @param array $value
134
134
*
135
135
* @return \WebDriver\Element|\WebDriver\Shadow|null
136
136
*/
137
- protected function webDriverElement ($ value )
137
+ protected function makeElement ($ value )
138
138
{
139
139
if (array_key_exists (LegacyElement::LEGACY_ELEMENT_ID , $ value )) {
140
140
$ identifier = $ value [LegacyElement::LEGACY_ELEMENT_ID ];
Original file line number Diff line number Diff line change @@ -378,7 +378,7 @@ public function activeElement()
378
378
{
379
379
$ result = $ this ->curl ('POST ' , '/element/active ' );
380
380
381
- return $ this ->webDriverElement ($ result ['value ' ]);
381
+ return $ this ->makeElement ($ result ['value ' ]);
382
382
}
383
383
384
384
/**
You can’t perform that action at this time.
0 commit comments