Skip to content

Commit 36645bd

Browse files
committed
Updated documentation
1 parent 5262a2c commit 36645bd

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

src/SeleniumLibrary/keywords/browsermanagement.py

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -189,20 +189,14 @@ def open_browser(self, url, browser='firefox', alias=None,
189189
Then the `${options}` variable can be used as an argument to
190190
``options``.
191191
192-
The ``options`` argument also makes it easy to test Chomium-based
193-
applications which utilize the Chromium Embedded Framework (aka CEF)
194-
such as those created using QtWebEngine. This is accomplished
195-
using the ChromeDriver webdriver included with Selenium.
196-
All that is needed is a binary location of the application under
197-
test and a remote debugging port for ChromeDriver to interface
198-
with.
199-
(https://bitbucket.org/chromiumembedded/cef/wiki/UsingChromeDriver)
200-
201-
Example:
202-
| `Open Browser` | browser=Chrome | options=binary_location="<path/to/binary>";add_argument("remote-debugging-port=<port>") |
203-
204-
Once opened, the user can interact with the embedded web-content of
205-
the application under test.
192+
Example the ``options`` argument can be used to launch Chomium-based
193+
applications which utilize the
194+
[https://bitbucket.org/chromiumembedded/cef/wiki/UsingChromeDriver|Chromium Embedded Framework]
195+
. To lauch Chomium-based application, use ``options`` to define
196+
`binary_location` attribute and use `add_argument` method to define
197+
`remote-debugging-port` port for the application. Once the browser
198+
is opened, the test can interact with the embedded web-content of
199+
the system under test.
206200
207201
Optional ``service_log_path`` argument defines the name of the
208202
file where to write the browser driver logs. If the
@@ -231,9 +225,10 @@ def open_browser(self, url, browser='firefox', alias=None,
231225
Example when using
232226
[https://seleniumhq.github.io/selenium/docs/api/py/webdriver_chrome/selenium.webdriver.chrome.options.html#selenium.webdriver.chrome.options.Options|Chrome options]
233227
method:
234-
| `Open Browser` | http://example.com | Chrome | options=add_argument("--disable-popup-blocking"); add_argument("--ignore-certificate-errors") | # Sting format |
235-
| ${options} = | Get Options | | | # Selenium options instance |
236-
| `Open Browser` | http://example.com | Chrome | options=${options} | |
228+
| `Open Browser` | http://example.com | Chrome | options=add_argument("--disable-popup-blocking"); add_argument("--ignore-certificate-errors") | # Sting format |
229+
| ${options} = | Get Options | | | # Selenium options instance |
230+
| `Open Browser` | http://example.com | Chrome | options=${options} | |
231+
| `Open Browser` | None | Chrome | options=binary_location="/path/to/binary";add_argument("remote-debugging-port=port") | # Start Chomium-based application |
237232
238233
Example for FirefoxProfile
239234
| `Open Browser` | http://example.com | Firefox | ff_profile_dir=/path/to/profile | # Using profile from disk |

0 commit comments

Comments
 (0)