@@ -264,10 +264,10 @@ contains the following items: https://robotframework.org/,
264264https://robocon.io/, https://github.com/robotframework/'
265265and 'https://github.com/.
266266
267- = Browser and Driver options =
267+ = Browser and Driver options and service class =
268268
269269This section talks about how to configure either the browser or
270- the driver using the options ans service arguments of the `Open
270+ the driver using the options and service arguments of the `Open
271271Browser` keyword.
272272
273273== Configuring the browser using the Selenium Options ==
@@ -346,6 +346,33 @@ applications which utilize the
346346is opened, the test can interact with the embedded web-content of
347347the system under test.
348348
349+ == Configuring the driver using the Service class ==
350+
351+ With the ``service`` argument, one can setup and configure the driver. For example
352+ one can set the driver location and/port or specify the command line arguments. There
353+ are several browser specific attributes related to logging as well. For the various
354+ Service Class attributes refer to
355+ [https://www.selenium.dev/documentation/webdriver/drivers/service/|the Selenium documentation]
356+ . Currently the ``service`` argument only accepts Selenium service in the string format.
357+
358+ === Service string format ===
359+
360+ The string format allows for defining Selenium service attributes
361+ and their values in the `Open Browser` keyword. The attributes names
362+ are case and space sensitive and must match to the Selenium attributes
363+ names. Attributes are defined in a similar way as in Python: attribute
364+ name, equal sign, and attribute value. Example, `port=1234`. Multiple
365+ attributes must be separated by a semicolon. Example:
366+ `executable_path='/path/to/driver';port=1234`. Don't have duplicate
367+ attributes, like `service_args=['--append-log', '--readable-timestamp'];
368+ service_args=['--log-level=DEBUG']` as the second will override the first.
369+ Instead combine them as in
370+ `service_args=['--append-log', '--readable-timestamp', '--log-level=DEBUG']`
371+
372+ Arguments allow defining Python data types and arguments are
373+ evaluated by using Python. Strings must be quoted with single
374+ or double quotes, example "value" or 'value'
375+
349376= Timeouts, waits, and delays =
350377
351378This section discusses different ways how to wait for elements to
0 commit comments