Chromium Code Reviews| Index: pyautolib/pyauto.py |
| =================================================================== |
| --- pyautolib/pyauto.py (revision 113876) |
| +++ pyautolib/pyauto.py (working copy) |
| @@ -2657,7 +2657,7 @@ |
| def FindInPage(self, search_string, forward=True, |
| match_case=False, find_next=False, |
| - tab_index=0, windex=0): |
| + tab_index=0, windex=0, timeout=-1): |
|
kkania
2011/12/15 00:41:36
It's too bad ActionTimeoutChanger can't be used fo
Nirnimesh
2011/12/15 05:22:04
I wasn't aware ActionTimeoutChanger is broken. I'm
|
| """Find the match count for the given search string and search parameters. |
| This is equivalent to using the find box. |
| @@ -2689,7 +2689,8 @@ |
| 'match_case' : match_case, |
| 'find_next' : find_next, |
| } |
| - return self._GetResultFromJSONRequest(cmd_dict, windex=windex) |
| + return self._GetResultFromJSONRequest(cmd_dict, windex=windex, |
| + timeout=timeout) |
| def ExecuteJavascript(self, js, tab_index=0, windex=0, frame_xpath=''): |
| """Executes a script in the specified frame of a tab. |