Index: chrome/test/webdriver/commands/webelement_commands.cc |
diff --git a/chrome/test/webdriver/commands/webelement_commands.cc b/chrome/test/webdriver/commands/webelement_commands.cc |
index 2971a678f5b5017fb8bf810cd0f42047e02c4507..7a1fdd695fe5a6a5f00dfce5b98d2dff170c1bb0 100644 |
--- a/chrome/test/webdriver/commands/webelement_commands.cc |
+++ b/chrome/test/webdriver/commands/webelement_commands.cc |
@@ -469,8 +469,7 @@ void ElementValueCommand::ExecuteGet(Response* const response) { |
response->SetError(error); |
return; |
} |
- if (!result->IsType(Value::TYPE_STRING) && |
- !result->IsType(Value::TYPE_NULL)) { |
+ if (!result->IsString() && !result->IsNull()) { |
response->SetError(new Error( |
kUnknownError, "Result is not string or null type")); |
return; |
@@ -624,7 +623,7 @@ void ElementTextCommand::ExecuteGet(Response* const response) { |
response->SetError(error); |
return; |
} |
- if (!result->IsType(Value::TYPE_STRING)) { |
+ if (!result->IsString()) { |
response->SetError(new Error(kUnknownError, "Result is not string type")); |
return; |
} |