Skip to content

Commit 5bc3947

Browse files
committed
Fixing IE driver to allow JavaScript objects with property names with spaces
Fixes issue SeleniumHQ#7305.
1 parent 3a28381 commit 5bc3947

File tree

5 files changed

+6
-1
lines changed

5 files changed

+6
-1
lines changed

cpp/iedriver/CommandHandlers/ExecuteScriptCommandHandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ class ExecuteScriptCommandHandler : public IECommandHandler {
196196
}
197197
std::string counter_string = std::to_string(static_cast<long long>(counter));
198198
std::string name = it.memberName();
199-
object_script += name + ":arguments[" + counter_string + "]";
199+
object_script += "\"" + name + "\"" + ":arguments[" + counter_string + "]";
200200
++counter;
201201
}
202202
object_script += "};}})();";

cpp/iedriverserver/CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ 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.41.0.2
13+
=========
14+
* Fixed IE driver to allow JavaScript objects with property names with spaces.
15+
Fixes issue #7305.
16+
1217
v2.41.0.1
1318
=========
1419
* 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)