File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ This project versioning adheres to [Semantic Versioning](http://semver.org/).
55
66---
77
8+ ### Fixed
9+ - Mozilla firefox geckodriver fix. ([ PHPUnit\Framework\Exception] Undefined index: ELEMENT)
10+
811## 1.6.0 - 2018-05-16
912### Added
1013- Connection and request timeouts could be specified also when creating RemoteWebDriver from existing session ID.
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ public function findElement(WebDriverBy $by)
187187 $ params
188188 );
189189
190- return $ this ->newElement ($ raw_element ['ELEMENT ' ]);
190+ return $ this ->newElement ($ raw_element ['ELEMENT ' ] ?? $ raw_element [ \key ( $ raw_element )] );
191191 }
192192
193193 /**
@@ -207,7 +207,7 @@ public function findElements(WebDriverBy $by)
207207
208208 $ elements = [];
209209 foreach ($ raw_elements as $ raw_element ) {
210- $ elements [] = $ this ->newElement ($ raw_element ['ELEMENT ' ]);
210+ $ elements [] = $ this ->newElement ($ raw_element ['ELEMENT ' ] ?? $ raw_element [ \key ( $ raw_element )] );
211211 }
212212
213213 return $ elements ;
You can’t perform that action at this time.
0 commit comments