Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
sahi スクリプトでアサーションを適用して、パスワード フィールドにマスクされた値が表示されているかどうかを確認するにはどうすればよいですか? 例えば、**********
**********
入力から type 属性を取得し、それが「password」と等しいことを確認します。
_assertEqual(_textbox("myTextBox").getAttribute("TYPE"), "password")
編集:混乱を避けるために、以下のナラヤンのコメントに基づいて、これを行う正しい方法は実際には次のとおりです。
_assertExists(_password("id"))