Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

seeInField with radio buttons

未關閉
#64 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
功能
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
php
領域
testing

研究方向

從 WebDriver 模組的 seeInField 進入點和連結的 seeInField 文件開始。在定義範圍之前,先檢視單選按鈕、select、核取方塊、label 以及 null 或空值的要求行為;issue 中沒有指定實作檔案或測試。

由索引模型根據 Issue 內容生成。

描述

Some suggestions/questions for seeInField:

  1. Even if not explicitly mentioned at http://codeception.com/docs/modules/WebDriver#seeInField it works for radio buttons too? And probably select's and checkbox'es too?

  2. For radio buttons, you need to pass the value as second argument:

    $I->seeInField('.gender', 1);
    

    ...which isn't very readable ;-) So I'm suggesting a method to assert a radio button's value by its label - something like:

    $I->seeRadioSelected('.gender', 'female');
    
  3. How can you assert that no radio button is selected? I tried seeInField with null or '' as second argument - both didn't work. So I'm suggesting to include that too.

主要語言
PHP
星號
39
分支
25
PR 合併指標
30 天內沒有已合併 PR

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

Codeception/module-webdriver 的其他 Issue

查看 Codeception/module-webdriver 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。