我需要一些帮助来理解当列表元素在表格中时选择列表元素的逻辑并且可能被隐藏。早些时候我发布了一个类似的问题,并且能够弄清楚如何找到这些元素,但这个问题让我望而却步。
最后一次尝试是这样的: @ b.table(:class =>" ContractPriceTable")。select_list(:class =>" ContractPriceSourceLocale")。option(:text =>" Japanese(日本)"。)选择
<table id="ContractPriceTable" class="table table-bordered table-nomargin ContractPriceTable">
<tr>
<td>
<div id="s2id_Contracts_142c5493-fc46-4608-91f9-addfcc04162d__ContractTranslationQualities_293ac7e9-f083-4c27-abeb-41b90e907716__ContractPrices_7fc81280-14c2-4a1b-a659-af99105af152__CurrencyId" class="select2-container select2 visible currency-select">
<a class="select2-choice" tabindex="-1" onclick="return false;" href="javascript:void(0)">
<input id="s2id_autogen3" class="select2-focusser select2-offscreen" type="text">
</div>
<select id="Contracts_142c5493-fc46-4608-91f9-addfcc04162d__ContractTranslationQualities_293ac7e9-f083-4c27-abeb-41b90e907716__ContractPrices_7fc81280-14c2-4a1b-a659-af99105af152__CurrencyId" class="select2 visible currency-select select2-offscreen" name="Contracts[142c5493-fc46-4608-91f9-addfcc04162d].ContractTranslationQualities[293ac7e9-f083-4c27-abeb-41b90e907716].ContractPrices[7fc81280-14c2-4a1b-a659-af99105af152].CurrencyId" data-val-required="The CurrencyId field is required." data-val="true" tabindex="-1">
<option value="b32ad865-00b7-4969-b9af-053538405bf8">Yuan (CNY) - ¥</option>
<option value="a6f8185b-4119-4b4b-8c23-7211bef8b2bd">Japanese (Japan)</option>