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.
セレン (Java) を介して Web ページの最初のラジオ ボタンを選択したい - ラジオ ボタンの値しかなく、ラジオ ボタンのリストの最初のボタンを知っています。このラジオボタンを選択するための最良のアプローチは何ですか - 役立つ提案は大歓迎です。 次のことを試しましたが、機能しません (ラジオ ボタンの値は 1 です)。
selenium.check("value=1");
私は働いた以下を使用することができました:
selenium.click("//input[@value='1']");