From 0e8ed7ec1ba1e4148739f58b3f95c26b9b32888c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81?= Date: Fri, 16 Feb 2024 19:06:58 +0100 Subject: [PATCH] fixed docs of __init__ and linted MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ReneĢ --- Browser/browser.py | 2 +- atest/test/02_Content_Keywords/files.robot | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Browser/browser.py b/Browser/browser.py index af09056d8..8d2d7d5e8 100755 --- a/Browser/browser.py +++ b/Browser/browser.py @@ -782,7 +782,7 @@ def __init__( | =Argument= | =Description= | | ``auto_closing_level`` | Configure context and page automatic closing. Default is ``TEST``, for more details, see `AutoClosingLevel` | | ``enable_playwright_debug`` | Enable low level debug information from the playwright to playwright-log.txt file. For more details, see `PlaywrightLogTypes`. | - | ``enable_presenter_mode`` | Automatic highlights the interacted components, slowMo and a small pause at the end. Can be enabled by giving True or can be customized by giving a dictionary: `{"duration": "2 seconds", "width": "2px", "style": "dotted", "color": "blue"}` Where `duration` is time format in Robot Framework format, defaults to 2 seconds. `width` is width of the marker in pixels, defaults the `2px`. `style` is the style of border, defaults to `dotted`. `color` is the color of the marker, defaults to `blue`. By default, the call banner keyword is also enabled unless explicitly disabled.| + | ``enable_presenter_mode`` | Automatic highlights the interacted components, slowMo and a small pause at the end. Can be enabled by giving True or can be customized by giving a dictionary: `{"duration": "2 seconds", "width": "2px", "style": "dotted", "color": "blue"}` Where `duration` is time format in Robot Framework format, defaults to 2 seconds. `width` is width of the marker in pixels, defaults the `2px`. `style` is the style of border, defaults to `dotted`. `color` is the color of the marker, defaults to `blue`. By default, the call banner keyword is also enabled unless explicitly disabled. | | ``external_browser_executable`` | Dict mapping name of browser to path of executable of a browser. Will make opening new browsers of the given type use the set executablePath. Currently only configuring of `chromium` to a separate executable (chrome, chromium and Edge executables all work with recent versions) works. | | ``jsextension`` | Path to Javascript modules exposed as extra keywords. The modules must be in CommonJS. It can either be a single path, a comma-separated lists of path or a real list of strings | | ``playwright_process_port`` | Experimental reusing of playwright process. ``playwright_process_port`` is preferred over environment variable ``ROBOT_FRAMEWORK_BROWSER_NODE_PORT``. See `Experimental: Re-using same node process` for more details. | diff --git a/atest/test/02_Content_Keywords/files.robot b/atest/test/02_Content_Keywords/files.robot index d1e690263..a87883406 100644 --- a/atest/test/02_Content_Keywords/files.robot +++ b/atest/test/02_Content_Keywords/files.robot @@ -7,8 +7,8 @@ Test Teardown Run Keywords Restore Library Timeout AND Wait For A Force Tags slow *** Variables *** -${CUSTOM_DL_PATH} = ${CURDIR}/download_file -${ORIGINAL_TIMEOUT} 1s +${CUSTOM_DL_PATH} = ${CURDIR}/download_file +${ORIGINAL_TIMEOUT} = 1s *** Test Cases *** Upload Upload_test_file @@ -124,8 +124,8 @@ Wait For Download Relative To downloadsPath File Should Exist ${OUTPUT DIR}/test_download_file_saveAs.js Remove File ${download_file_object}[saveAs] -Wait For Download with Remote Browser - [Setup] Launch and Connect To Remote Browser +Wait For Download With Remote Browser + [Setup] Launch And Connect To Remote Browser New Context acceptDownloads=True New Page ${LOGIN_URL} ${dl_promise} = Promise To Wait For Download saveAs=persistent_downloads @@ -135,8 +135,8 @@ Wait For Download with Remote Browser Should Be Equal ${file_object}[suggestedFilename] test_download_file.js Remove File ${file_object}[saveAs] -Wait For Download with Remote Browser Without SaveAs - [Setup] Launch and Connect To Remote Browser +Wait For Download With Remote Browser Without SaveAs + [Setup] Launch And Connect To Remote Browser New Context acceptDownloads=True New Page ${LOGIN_URL} ${dl_promise} = Promise To Wait For Download @@ -148,8 +148,8 @@ Wait For Download with Remote Browser Without SaveAs END *** Keywords *** -Launch and Connect To Remote Browser - ${ws} Launch Browser Server headless=${HEADLESS} +Launch And Connect To Remote Browser + ${ws} = Launch Browser Server headless=${HEADLESS} Connect To Browser wsEndpoint=${ws} Set Browser Timeout 90 seconds