diff --git a/content/en/steps/index.md b/content/en/steps/index.md index 631d431..ad0bd4b 100644 --- a/content/en/steps/index.md +++ b/content/en/steps/index.md @@ -102,6 +102,8 @@ You can create your own original test scenarios by combining these steps. * $num = The row number of the cell where "`column number`" column text equals "`text`" in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the "`table`" table * $text = The text of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table +* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the header of the "`table`" table"" +* $text = The "`attribute`" attribute of the cell in "`column number`" column and "`row number`" row in the "`table`" table * $sum = Sum of the “`column number to sum`” column which “`column number to search`” column is “`text`” in the “`table`” table -------- diff --git a/content/steps/GetTableCellAttribute.md b/content/steps/GetTableCellAttribute.md new file mode 100644 index 0000000..6080de4 --- /dev/null +++ b/content/steps/GetTableCellAttribute.md @@ -0,0 +1,54 @@ +--- +date: 2015-07-02T16:08:08+09:00 +description: null +slug: null +tags: [] +title: $テキスト = 「テーブル名」テーブルの「行番号」行目「列番号」列目の「属性」属性 +--- + +表の中から指定された行番号と列番号のセルの属性値を取得します。 + +## パラメータ + +パラメータ名 | 説明 +------|--------- +`テーブル名` | CSS3セレクタが利用可能。 +`行番号` | 正の整数が利用可能。 +`列番号` | 正の整数が利用可能。 +`属性名` | チェック対象の属性名、文字列が利用可能。 + +## 実際の属性値と、期待している属性値と一致するか確認する例 + +``` +「http://docs.shouldbee.at/steps/GetTableCellAttribute/」に移動する +$ボブと表示されているセルのid属性の期待値 = 定数「bob」 +$実際の属性値 = 「#persons」テーブルの「2」行目「2」列目の「id」属性 +{$ボブと表示されているセルのid属性の期待値}と{$実際の属性値}が一致すること +``` + +
+ + + + + + + + + + + + + + + + + +
氏名年齢
アリス22
ボブ23
+
+ +## 別の表記 + +* 「`テーブル名`」テーブルの「`列番号`」列目「`行番号`」行目の「`属性`」属性 +* 「`テーブル名`」表の「`行番号`」行目「`列番号`」列目の「`属性`」属性 +* 「`テーブル名`」表の「`列番号`」列目「`行番号`」行目の「`属性`」属性 diff --git a/content/steps/GetTableHeaderCellAttribute.md b/content/steps/GetTableHeaderCellAttribute.md new file mode 100644 index 0000000..d29e10b --- /dev/null +++ b/content/steps/GetTableHeaderCellAttribute.md @@ -0,0 +1,54 @@ +--- +date: 2015-07-02T17:11:31+09:00 +description: null +slug: null +tags: [] +title: $テキスト = 「`テーブル名`」テーブルのヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性 +--- + +表のヘッダーの中から指定された行番号と列番号のセルの属性値を取得します。 + +## パラメータ + +パラメータ名 | 説明 +------|--------- +`テーブル名` | CSS3セレクタが利用可能。 +`行番号` | 正の整数が利用可能。 +`列番号` | 正の整数が利用可能。 +`属性名` | チェック対象の属性名、文字列が利用可能。 + +## 実際の属性値と、期待している属性値と一致するか確認する例 + +``` +「http://docs.shouldbee.at/steps/GetTableHeaderCellAttribute/」に移動する +$氏名と表示されているセルのid属性の期待値 = 定数「name」 +$実際の属性値 = 「#persons」テーブルのヘッダーの「1」行目「1」列目の「id」属性 +{$氏名と表示されているセルのid属性の期待値}と{$実際の属性値}が一致すること +``` + +
+ + + + + + + + + + + + + + + + + +
氏名年齢
アリス22
ボブ23
+
+ +## 別の表記 + +* 「`テーブル名`」テーブルのヘッダーの「`列番号`」列目「`行番号`」行目の「`属性`」属性 +* 「`テーブル名`」表のヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性 +* 「`テーブル名`」表のヘッダーの「`列番号`」列目「`行番号`」行目の「`属性`」属性 diff --git a/content/steps/index.md b/content/steps/index.md index 911ef32..fb7c441 100644 --- a/content/steps/index.md +++ b/content/steps/index.md @@ -101,7 +101,9 @@ title: ステップ一覧 * [$行番号 =「`テーブル名`」テーブルの「`列番号`」列目のテキストが「`テキスト`」の行番号](/steps/GetRowNumberByColumnText/) * [$テキスト =「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目のテキスト](/steps/GetTableCellText/) -* [$合計 = 「`テーブル名`」テーブルの「`検索する列番号`」列目が「`条件`」の「`合計する列番号`」列目を合計する](/steps/SumFilteredRows/) +* [$テキスト =「`テーブル名`」テーブルのヘッダーの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableHeaderCellAttribute/) +* [$テキスト =「`テーブル名`」テーブルの「`行番号`」行目「`列番号`」列目の「`属性`」属性](/steps/GetTableCellAttribute/) +* [$合計 =「`テーブル名`」テーブルの「`検索する列番号`」列目が「`条件`」の「`合計する列番号`」列目を合計する](/steps/SumFilteredRows/) ## ウィンドウ