Support Robot Framework (SeleniumLibrary) `Secret` values in `Open Browser`
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 58/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- testing-qa
調査の方向性
SeleniumLibrary の Open Browser キーワードの実装から始め、その URL 引数が Selenium に渡されるまでを追跡してください。Robot Framework 7.4.2 で Secret の値がどのように表現され、処理されるかを確認し、提供された Secret URL の例に対するカバレッジを追加してください。Open Browser が Secret を直接受け付け、Robot Framework のログでは引き続き URL がマスクされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Description
SeleniumLibrary currently does not support Robot Framework Secret values when they are passed to keywords expecting string arguments.
For example, when using a Secret as the url argument of Open Browser, the browser is not opened successfully.
To make it work, I have to explicitly use ${url.value} instead of ${url}. However, this defeats the purpose of using Secret, because the URL is then logged in clear text in Robot Framework log files.
Example
*** Settings ***
Library SeleniumLibrary
*** Test Cases ***
Open Browser With Secret URL
${url}= Get Secret https://example.com?token=secret-token
Open Browser ${url} Firefox
Current behavior
Passing a Secret object directly causes the keyword to fail.
A subsequent keyword then reports:
[FAIL] No browser is open.
The only workaround is to use:
Open Browser ${url.value} Firefox
This opens the browser correctly, but the secret URL is no longer protected and is written in clear text to Robot Framework log files.
Expected behavior
Keywords accepting string arguments should also accept Robot Framework Secret values.
SeleniumLibrary should automatically unwrap the Secret internally before passing the value to Selenium, while preserving Robot Framework's secret masking in logs and reports.
This would allow users to use sensitive URLs (for example, URLs containing authentication tokens or embedded credentials) without exposing them in log files.
Environment
- Robot Framework: 7.4.2
- SeleniumLibrary: 6.9.0
Additional question
If this is not something that should be implemented in SeleniumLibrary, could you please advise whether support for Secret values should instead be implemented in Robot Framework?
- 主要言語
- Python
- スター
- 1.5k
- フォーク
- 787
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
robotframework/SeleniumLibrary のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
robotframework/SeleniumLibrary#1941 · コメント 3 件 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
robotframework/SeleniumLibrary#1833 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
robotframework/SeleniumLibrary#1436 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
robotframework/SeleniumLibrary#1992 · コメント 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
robotframework/SeleniumLibrary#1964 · コメント 1 件 ·
robotframework/SeleniumLibrary の issue をすべて見る
似ている issue
-
bug confirmed issue
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
open-webui/open-webui#30750 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · コメント 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 90/100