title: Find out last Option value in Drop down list Webdriver using Java
body: <p>How can we select the "Last" Option value in Drop down list</p>
  
  <p>find out the html code, this Drop down box items generate dynamically based on the record size in Grid</p>
  
  <pre><code>&lt;select id="CPHRegContent_ddlPageSize" onchange="return ddlPageChange();"name="ctl00$CPHRegContent$ddlPageSize"&gt;
  &lt;option value="25"&gt;25&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>some time it may have 3 items</p>
  
  <pre><code>&lt;select id="CPHRegContent_ddlPageSize" onchange="return ddlPageChange();" name="ctl00$CPHRegContent$ddlPageSize"&gt;
  &lt;option value="25"&gt;25&lt;/option&gt;
  &lt;option value="50"&gt;50&lt;/option&gt;
  &lt;option value="100"&gt;100&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>each execution of my code, it should be select the last option item in that drop down list,
  let me know how can we proceed for this situation</p>