Skip to content

Commit 1e8854f

Browse files
committed
Fixed finding elements where native CSS selector engine cannot be found
1 parent b4330a4 commit 1e8854f

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

cpp/iedriver/ElementFinder.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ int ElementFinder::FindElementsUsingSizzle(const IECommandExecutor& executor,
243243
get_element_count_script_wrapper.AddArgument(snapshot);
244244
result = get_element_count_script_wrapper.Execute();
245245
if (result == WD_SUCCESS) {
246+
*found_elements = Json::Value(Json::arrayValue);
246247
if (!get_element_count_script_wrapper.ResultIsInteger()) {
247248
LOG(WARN) << "Found elements count is not integer";
248249
result = EUNEXPECTEDJSERROR;

cpp/iedriverserver/CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ available via the project downloads page. Changes in "revision" field indicate
99
private releases checked into the prebuilts directory of the source tree, but
1010
not made generally available on the downloads page.
1111

12+
v2.49.0.2
13+
=========
14+
* Fixed finding elements where native CSS selector engine cannot be found.
15+
1216
v2.49.0.1
1317
=========
1418
* Updates to JavaScript automation atoms.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)