Skip to content

Commit

Permalink
fixed docs of __init__ and linted
Browse files Browse the repository at this point in the history
Signed-off-by: René <[email protected]>
  • Loading branch information
Snooz82 committed Feb 16, 2024
1 parent 3754c50 commit 0e8ed7e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Browser/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. |
Expand Down
16 changes: 8 additions & 8 deletions atest/test/02_Content_Keywords/files.robot
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 0e8ed7e

Please sign in to comment.