【问题标题】:scala type of formsscala 类型的表单
【发布时间】:2015-04-16 04:53:13
【问题描述】:

我是 scala 语言的新手。我想知道的是我需要从下拉列表中选择一个值。这里发生的情况如下所示。

<input id="categoryDid" class=" x-form-text x-form-field print_underline x-form-empty-field x-trigger-noedit" type="text" name="category" autocomplete="off" size="24" tabindex="1" readonly="" style="width: 132px;">    drop down data some where else.    <div id="ext-gen274" class="x-combo-list-inner" style="width: 148px; margin-bottom: 8px; height: 63px;">

在下面的其他地方下拉数据。

    <div id="ext-gen274" class="x-combo-list-inner" style="width: 148px; margin-bottom: 8px; height: 63px;">
<div class="x-combo-list-item">--Select--</div>
<div class="x-combo-list-item">Mobile Phone</div>
<div class="x-combo-list-item x-combo-selected">Tablet</div>
</div>

我正在使用 gatling / scala 组合。现在我需要选择的是“手机”。我使用了formParam("categoryDid", "Mobile Phone"),但似乎这不起作用。 有人可以帮忙吗?

【问题讨论】:

    标签: scala gatling


    【解决方案1】:

    您的参数的名称(见输入字段)是类别,而不是 categoryDid:

    formParam("category", "Mobile Phone")
    

    【讨论】:

      猜你喜欢
      • 2011-03-05
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 2021-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-17
      相关资源
      最近更新 更多