Skip to content

Commit e72cc13

Browse files
committed
fixed behavior create session if 'reuse_ui' caps isn't set
1 parent 84f1983 commit e72cc13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webdriver/commands/create_session.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void CreateSession::ExecutePost(Response* const response) {
4848
if (sessionMap.size() > 0) {
4949
// session map can consist only single session at the moment
5050
Session* prev_session = sessionMap.begin()->second;
51-
bool reuse_ui;
51+
bool reuse_ui = false;
5252
if (required_caps_dict) {
5353
if (!required_caps_dict->GetBoolean(Capabilities::kReuseUI, &reuse_ui))
5454
desired_caps_dict->GetBoolean(Capabilities::kReuseUI, &reuse_ui);

0 commit comments

Comments
 (0)