Note that there are some explanatory texts on larger screens.

plurals
  1. POSearch for elements with same class names in webdriver
    primarykey
    data
    text
    <p>I need to write script for drop-down boxes. There are two dropdown elements on same screen and both the dropdown boxes have got similar class names (Dropdown boxes are of search and select kind),and there is no unique-id for any element. So the script works fine to select element from first dropdown, But it fails when it supposed to perform same for second dropdown.</p> <p>Do reply</p> <p>Regards</p> <pre><code>&lt;div class="title-edit-form" id="49156080-2097-ea0f"&gt; &lt;div class="control-group required"&gt; &lt;label class="control-label"&gt;Title &lt;/label&gt; &lt;div class="controls row-fluid"&gt; &lt;div class="select2-container span12 select2-container-active select2-dropdown-open" id="s2id_title"&gt; &lt;a href="#" onclick="return false;" class="select2-choice" tabindex="-1"&gt; &lt;span&gt;de&lt;/span&gt; &lt;abbr class="select2-search-choice-close" style="display:none;"&gt; &lt;/abbr&gt; &lt;div&gt; &lt;b&gt;&lt;/b&gt; &lt;/div&gt; &lt;/a&gt; &lt;/div&gt; &lt;input class="span12" id="title" type="hidden" style="display: none;" value="-1"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="select2-drop select2-drop-active" style="display: block; top: 177px; left: 536px; width: 530px;"&gt; &lt;div class="select2-search"&gt; &lt;input type="text" autocomplete="off" class="select2-input select2-focused" tabindex="-1" style=""&gt; &lt;/div&gt; &lt;ul class="select2-results"&gt; &lt;li class="select2-results-dept-0 select2-result select2-result-selectable select2-new"&gt; &lt;div class="select2-result-label"&gt; &lt;span class="select2-match"&gt;de&lt;/span&gt; &lt;/div&gt; &lt;/li&gt; &lt;li class="select2-results-dept-0 select2-result select2-result-selectable"&gt; &lt;div class="select2-result-label"&gt; &lt;span class="select2-match"&gt;De&lt;/span&gt; "an" &lt;/div&gt; &lt;/li&gt; &lt;li class="select2-results-dept-0 select2-result select2-result-selectable select2-highlighted"&gt; &lt;div class="select2-result-label"&gt; "Stu" &lt;span class="select2-match"&gt;de&lt;/span&gt; "nt" &lt;/div&gt;`enter code here` &lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload