Skip to content

Commit 5262a2c

Browse files
Jon Koseraaltat
Jon Koser
authored andcommitted
Example for a chromium-based app
1 parent 9eeada3 commit 5262a2c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/SeleniumLibrary/keywords/browsermanagement.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,21 @@ 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.
206+
192207
Optional ``service_log_path`` argument defines the name of the
193208
file where to write the browser driver logs. If the
194209
``service_log_path`` argument contain a marker ``{index}``, it

0 commit comments

Comments
 (0)