summaryrefslogtreecommitdiffstats
path: root/chrome/test/pyautolib
diff options
context:
space:
mode:
authornirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 21:27:31 +0000
committernirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-27 21:27:31 +0000
commit46e3648b7c42918fb82069fca279dd6c799a8149 (patch)
tree23ae39a242373502e90c4f02daedb955e21433c2 /chrome/test/pyautolib
parent2ef31c6227eb4a045cf47079da59789ac4d4e6c0 (diff)
downloadchromium_src-46e3648b7c42918fb82069fca279dd6c799a8149.zip
chromium_src-46e3648b7c42918fb82069fca279dd6c799a8149.tar.gz
chromium_src-46e3648b7c42918fb82069fca279dd6c799a8149.tar.bz2
Add a pyauto call for async navigation
NavigateToURLAsync() allows navigation to a tab without waiting for it to complete, or even begin. This is for use in special cases only. BUG= TEST= Review URL: http://codereview.chromium.org/6904045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/pyautolib')
-rw-r--r--chrome/test/pyautolib/pyautolib.i4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/test/pyautolib/pyautolib.i b/chrome/test/pyautolib/pyautolib.i
index 72671f1..6784694 100644
--- a/chrome/test/pyautolib/pyautolib.i
+++ b/chrome/test/pyautolib/pyautolib.i
@@ -120,6 +120,10 @@ class TabProxy {
AutomationMsg_NavigationResponseValues
NavigateToURLBlockUntilNavigationsComplete(
const GURL& url, int number_of_navigations);
+ %feature("docstring", "Navigates to a given GURL asynchronously. "
+ "Does not wait for the navigation to complete, or even begin; "
+ "Use NavigateToURL() if you want to wait.") NavigateToURLAsync;
+ bool TabProxy::NavigateToURLAsync(const GURL& url);
%feature("docstring", "Equivalent to hitting the Back button. "
"Blocks until navigation completes.") GoBack;
AutomationMsg_NavigationResponseValues GoBack();