Fill Multiple Textbox in a Row using specflow C#
<p>i am trying to automate a Webpage. in that webpage there is row with multiple columns and some columns have textboxes in it, while doing this i was able to fill value to the first textbox but am not able to fill values for the other textboxes. they have only class name in common.i am doing this using BDD and specflow. Here is the code i am using for filling value into the first textbox: </p>

<pre><code> public void ThenIFilThesheet(TechTalk.SpecFlow.Table table)
    {
        foreach (var row in table.Rows)
        {
            var textarea = WebBrowser.Current.TextField(Find.ByClass(row["field"]));
            if (!textarea.Exists)
                Assert.Fail("Class not found ");
            textarea.TypeText(row["value"]);
        }
    }
</code></pre>

<p>here is the feature file for the same :</p>

<pre><code>Then I fil the sheet
| field         | value |
| actuals_hours | 8     |
</code></pre>