While testing a website with Selenium IDE, I encountered an issue with the way elements are identified. The site utilizes something called "wickets" that change the ID of elements randomly, making it difficult for Selenium to record actions on certain elements like drop-down lists. I attempted to track the drop-down list manually by providing a target, but faced challenges.
Command |Target |Value
select |//div[@id="duration3"] |level=4 night (s)
Is there a solution using value or option parameters?
Here is a snippet of the code:
<select id="duration3" name="facets:durations:duration" wicket:id="duration">
<option value=""></option>
<option value="1">1 night(s)</option>
<option value="2">2 night(s)</option>
<option value="3">3 night(s)</option>
<option value="4">4 night(s)</option>
<option value="5">5 night(s)</option>
<option value="6">6 night(s)</option>
<option value="7">7 night(s)</option>
<option value="8">8 night(s)</option>
<option value="9" selected="selected">9 night(s)</option>
<option value="10">10 night(s)</option>
<option value="11">11 night(s)</option>
<option value="12">12 night(s)</option>
<option value="13">13 night(s)</option>
<option value="14">14 night(s)</option>
<option value="15">15 night(s)</option>
<option value="16">16 night(s)</option>
<option value="17">17 night(s)</option>
<option value="18">18 night(s)</option>
<option value="19">19 night(s)</option>
<option value="20">20 night(s)</option>
<option value="21">21 night(s)</option>
</select>
How can I effectively track a specific element (e.g., option 4)?