Index: chrome/test/chromedriver/commands.cc |
diff --git a/chrome/test/chromedriver/commands.cc b/chrome/test/chromedriver/commands.cc |
index f90388ab0648645c74f94b91098fb5b473964eda..0ee472e4531cbd7ada0c96893bec35ce22b728a9 100644 |
--- a/chrome/test/chromedriver/commands.cc |
+++ b/chrome/test/chromedriver/commands.cc |
@@ -105,3 +105,12 @@ Status ExecuteExecuteScript( |
return session->chrome->CallFunction( |
"function(){" + script + "}", *args, value); |
} |
+ |
+Status ExecuteTitle( |
+ Session* session, |
+ const base::DictionaryValue& params, |
+ scoped_ptr<base::Value>* value) { |
+ base::ListValue args; |
+ return session->chrome->CallFunction( |
+ "function(){ return document.title; }", args, value); |
kkania
2013/01/04 04:35:34
see how the old chromedriver does it webdriver::Se
chrisgao (Use stgao instead)
2013/01/05 01:19:09
Followed the approach of the old chromedriver.
Bu
|
+} |