Skip to content

Commit ee276d6

Browse files
committed
Fixed errors in clear protocol
1 parent b0bb035 commit ee276d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/protocol/se_json_wire_protocol.e

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1395,8 +1395,8 @@ feature -- Commands
13951395
resp := commnad_executor.element_value (a_session_id, an_id, a_name)
13961396
check_response (resp)
13971397
if not has_error then
1398-
if attached resp.value as l_value then
1399-
Result := l_value
1398+
if attached {JSON_STRING} resp.value as l_value then
1399+
Result := l_value.item
14001400
end
14011401
end
14021402
end
@@ -1735,7 +1735,7 @@ feature -- Commands
17351735
}
17361736
]"
17371737
end
1738-
1738+
17391739
if commnad_executor.is_available then
17401740
if attached a_web_element as l_web_element then
17411741
l_json.replace_substring_all ("$element", l_web_element.element)

src/protocol/se_json_wire_protocol_commands.e

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ feature
356356

357357
cmd_session_element_clear (sessionId: STRING_32; id: STRING_32): STRING_32
358358
do
359-
create Result.make_from_string (cmd_session_element_name_tmpl)
359+
create Result.make_from_string (cmd_session_element_clear_tmpl)
360360
Result.replace_substring_all ("$sessionId", sessionId)
361361
Result.replace_substring_all ("$id", id)
362362
end

0 commit comments

Comments
 (0)