title: Robotframework: How to receive a list of all items inside a select field?
body: <p>I am currently stucked on the current situation while doing Test Automation on Robotframework. I kindly request for your assistance.</p>
  
  <p>I have got a select field of the following style:</p>
  
  <pre><code>&lt;select name="TestSelect" size="8" id="TextSelectInfoBox"     onchange="JavaScript:setTestSelect( TestSelect1, TestSelect2 );"&gt;                    
                      &lt;option value="TestOption1"&gt; First Entry&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>I now wish to check, if the select item does contain the value TestOption1.</p>
  
  <p>I found the hint on this website, that I could use the "List Should Contain" Keyword.</p>
  
  <p>For this, I defined the variable:</p>
  
  <p>${XPath_AccessList}   xpath=//select[@name="TestSelect"]</p>
  
  <p>Thanks to a quick reply on my question, I am now able to use</p>
  
  <pre><code>Page should contain element   path=//select[@name="TestSelect"]/option[@value="TestOption1"]
  </code></pre>
  
  <p>To get my first tests passed. Nevertheless, I would like to know if there is a comfortable way to fetch the options of such select field as a list for late usage of the "List Should Contain Value" keyword.</p>
  
  <p>While searching on the RobotFramework guides, I did only find the XML Library which seems to have functionality like "Get Child Elements" to possibly offer a solution, but I am a bit sceptical when seeing that it needs a "source" parameter, which I cannot provide.</p>
  
  <p>Thank you in advance for your help, if you do have any further question, I will try to provide such.</p>
  
  <p>Best regards,</p>
  
  <p>Tony</p>