title: Robot Framework - Selecting value from a dropdown list which appears after mouse over
body: <p>The scenario is :</p>
  
  <ol>
  <li>The user will move the mouse over the link : ID_CHECK: R17AA003</li>
  <li>The dropdown list will appear automatically</li>
  <li>User will select a test type from the list by Clicking </li>
  </ol>
  
  <p><a href="https://i.stack.imgur.com/KGFwT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KGFwT.png" alt="enter image description here"></a></p>
  
  <p>I am trying this code to achieve this :</p>
  
  <pre><code>Mouse over    ${xpathToIdCheck}
  Page Should Contain Element    xpath=//*[@id="list_of_test_types"]    5s
  Click Element   ${User_Menu Link}
  Select From List    xpath=//*[@id="list_of_test_types"]    STR
  </code></pre>
  
  <p>When I run the test, Robot framework moves the mouse over the id_Check link and we can see that the text box is appearing:</p>
  
  <p><a href="https://i.stack.imgur.com/Iuiwy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Iuiwy.png" alt="enter image description here"></a> </p>
  
  <p>But right after that the test fails. Apparently it can find the element on the webpage , but can not locate the dropdown box to click on.</p>
  
  <p><a href="https://i.stack.imgur.com/YAV1n.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YAV1n.png" alt="enter image description here"></a></p>
  
  <p>After this I tried by removing the click link command and directly went for Select from list command:</p>
  
  <pre><code>Mouse over    ${xpathToIdCheck}
  Page Should Contain Element    xpath=//*[@id="list_of_test_types"]    5s
  Select From List    xpath=//*[@id="list_of_test_types"]    STR
  </code></pre>
  
  <p>But it failed again. The feedback is as follows: </p>
  
  <p><a href="https://i.stack.imgur.com/NbUXI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NbUXI.png" alt="enter image description here"></a></p>
  
  <p>The html code is as follows:</p>
  
  <pre><code>    &lt;form action="/change_test_type_id_check?page=1&amp;amp;study_id=ID&amp;amp;test_uuid=UUID" method="post" style="display:inline"&gt;
      &lt;select class="list_of_test_types" id="list_of_test_types" name="`" onchange="this.form.submit()"&gt;
  &lt;option value=""&gt;Select a test type&lt;/option&gt;
  &lt;option value="STR"&gt;STR&lt;/option&gt;&lt;/select&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p>Also if I change the code to </p>
  
  <pre><code>Select From List by Value   xpath=//*[@id="list_of_test_types"]    STR
  </code></pre>
  
  <p>This also fails with the message "NoSuchElementException: Message: Cannot locate option with value: STR"</p>
  
  <p>Looking forward for your kind support. Thanks</p>