[robotframework-seleniumlibrary] push by janne.t.harkonen@gmail.com - browser: increase connection timeout, doc cleanup on 2012-05-07 07:20 GMT

0 views
Skip to first unread message

robotframework-...@googlecode.com

unread,
May 7, 2012, 3:20:44 AM5/7/12
to robotframework-se...@googlegroups.com
Revision: d3e1ec578388
Author: Janne Härkönen <j...@reaktor.fi>
Date: Mon May 7 00:20:28 2012
Log: browser: increase connection timeout, doc cleanup
http://code.google.com/p/robotframework-seleniumlibrary/source/detail?r=d3e1ec578388

Modified:
/src/SeleniumLibrary/browser.py

=======================================
--- /src/SeleniumLibrary/browser.py Sun Dec 18 22:49:38 2011
+++ /src/SeleniumLibrary/browser.py Mon May 7 00:20:28 2012
@@ -28,7 +28,7 @@
'googlechrome': '*googlechrome',
'opera': '*opera',
'safari': '*safari'}
-SELENIUM_CONNECTION_TIMEOUT = 40
+SELENIUM_CONNECTION_TIMEOUT = 120


class Browser(RunOnFailure):
@@ -61,14 +61,13 @@
| opera | Opera |

Additionally, a string like `*custom /path/to/browser-executable`
can
- be used to specify the browser directly. In this case, the path
needs to
- point to an executable, not a script, otherwise the library may
not be
- able to shut down the browser properly.
-
- Note, that you will encounter strange behavior, if you open
- multiple Internet Explorer browser instances. That is also why
- `Switch Browser` only works with one IE browser at most.
- For more information see:
+ be used to specify the browser directly. In this case, the path
needs
+ to point to an executable, not a script, otherwise the library may
not
+ be able to shut down the browser properly.
+
+ Note, that you will encounter strange behavior, if you open
multiple
+ Internet Explorer browser instances. That is also why `Switch
Browser`
+ only works with one IE browser at most. For more information see:

http://selenium-grid.seleniumhq.org/faq.html#i_get_some_strange_errors_when_i_run_multiple_internet_explorer_instances_on_the_same_machine
"""
self._selenium = self._create_browser_session(browser, url)
@@ -208,8 +207,8 @@
def go_back(self, dont_wait=''):
"""Simulates the user clicking the "back" button on their browser.

- See `introduction` for details about locating elements and about
meaning
- of `dont_wait` argument."""
+ See `introduction` for details about locating elements and about
+ meaning of `dont_wait` argument."""
self._selenium.go_back()
if not dont_wait:
self.wait_until_page_loaded()
@@ -234,11 +233,12 @@
"""Selects the window found with `locator` as the context of
actions.

If the window is found, all subsequent commands use that window,
until
- this keyword is used again. If the window is not found, this
keyword fails.
-
- `locator` may be either the title of the window or the name of the
window
- in the JavaScript code that creates it. If multiple windows with
- same identifier are found, the first one is selected.
+ this keyword is used again. If the window is not found, this
keyword
+ fails.
+
+ `locator` may be either the title of the window or the name of the
+ window in the JavaScript code that creates it. If multiple windows
+ with same identifier are found, the first one is selected.

Special locator `main` (default) can be used to select the main
window.

Reply all
Reply to author
Forward
0 new messages