Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/91.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 选择不使用Watir的列表_Javascript_Html_Watir Webdriver_Selectlist_Safariwatir - Fatal编程技术网

Javascript 选择不使用Watir的列表

Javascript 选择不使用Watir的列表,javascript,html,watir-webdriver,selectlist,safariwatir,Javascript,Html,Watir Webdriver,Selectlist,Safariwatir,我正在使用safariwatir,我似乎无法让我的代码从列表中选择选项。我用来选择的语法是: browser.select_list(:id," select").select_value("USA") 以下是表格本身的HTML代码: <table> <input type="textbox" name="selectedIndex" style="display:none" id="selectedIndex" /> <input type="h

我正在使用safariwatir,我似乎无法让我的代码从列表中选择选项。我用来选择的语法是:

browser.select_list(:id," select").select_value("USA")
以下是表格本身的HTML代码:

<table>
    <input type="textbox" name="selectedIndex" style="display:none" id="selectedIndex" />
    <input type="hidden" id="fromNo" />
    <input type="hidden" id="toNo" />
  <tr><td height="5px" colspan="2"></td></tr>
  <tr>
    <td class="col-header"> 
        Select Base No.
    </td>
    <td class="col-field" align="left"> 

       <select id="select" name="select" onChange="loadFrames();disableTemporarily('select');"> 

        <option value="" selected>Select a base</option>

        <option value="CSindicator=Y&MMindicator=Y&FXindicator=Y&customerNum=MTAzNjQ5&branch=MTAy&GFCID=&accountNum=&asOfDate=&countrycode=102&activebase=MTAzNjQ5&MERMAID=c2dsaW13ZWlzYW5vbmxpbg==&PLANERILLA=c2dsaW13ZWlzYW5vbmxpbg==">USA</option>



        </select>
    </td>
  </tr>
</table>

选择基本编号。
选择一个基准
美国

我甚至试着把长期价值和所有。当我运行它时,终端确实会输出一个nil,这在通常情况下意味着它正在工作,但列表仍然未被选中。。任何想法或帮助都将不胜感激。谢谢。

很抱歉回复太晚,但目前Safariwatir几乎是一个死项目

从Safariwatir切换到Watir Webdriver,有关如何使用Safari的详细信息,请参阅