summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/testing_automation_provider.h
diff options
context:
space:
mode:
authorkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 22:41:16 +0000
committerkkania@chromium.org <kkania@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 22:41:16 +0000
commitab6bb8ef487c5e514e26b87b631315326d3267ab (patch)
tree9a96b9e8decfeb8498389689700655700f37569e /chrome/browser/automation/testing_automation_provider.h
parent9ac79893757d5790294578e69418b097bf569965 (diff)
downloadchromium_src-ab6bb8ef487c5e514e26b87b631315326d3267ab.zip
chromium_src-ab6bb8ef487c5e514e26b87b631315326d3267ab.tar.gz
chromium_src-ab6bb8ef487c5e514e26b87b631315326d3267ab.tar.bz2
Add a NavigateToURL automation method which uses the JSON interface. Use it in ChromeDriver.
BUG=none TEST=none Review URL: http://codereview.chromium.org/6588115 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76820 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/testing_automation_provider.h')
-rw-r--r--chrome/browser/automation/testing_automation_provider.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h
index 7d7c95c8..5828447 100644
--- a/chrome/browser/automation/testing_automation_provider.h
+++ b/chrome/browser/automation/testing_automation_provider.h
@@ -798,6 +798,22 @@ class TestingAutomationProvider : public AutomationProvider,
void WaitForAllTabsToStopLoading(DictionaryValue* args,
IPC::Message* reply_message);
+ // Gets the browser and tab index of the given tab. Uses the JSON interface.
+ // Example:
+ // input: { "tab_handle": 3 }
+ // output: { "browser_index": 1, "tab_index": 5 }
+ void GetIndicesFromTab(DictionaryValue* args, IPC::Message* reply_message);
+
+ // Navigates to the given URL. Uses the JSON interface.
+ // Example:
+ // input: { "browser_index": 1,
+ // "tab_index": 3,
+ // "url": "http://www.google.com",
+ // "navigation_count": 1 // number of navigations to wait for
+ // }
+ // output: { "result": AUTOMATION_MSG_NAVIGATION_SUCCESS }
+ void NavigateToURL(DictionaryValue* args, IPC::Message* reply_message);
+
#if defined(OS_CHROMEOS)
void LoginAsGuest(DictionaryValue* args, IPC::Message* reply_message);