Get value from cookie

L

Lily Yuan

Hi folks:
I have create a method which crates a last record into the select list
every time. I need to know how to create a method which can locate the
last record that I have created before(I think the new record can be
stored in the cookie). Could any folks give me any suggestion how to get
the last record from cookie by using watir API. I also want to know the
detail of method which can get these attributes(id, value, name etc) of
this record. If some codes can be provided it will be great.

Thank you :)

Attachments:
http://www.ruby-forum.com/attachment/5622/1.png
 
L

Lily Yuan

Html code like this:
<select id="checkout_year_month" class="Date"
name="checkout_year_month">
<option value="0" selected="selected" class="month
prompt">Month</option>
<option value="89" class="b_months">December'10</option>
<option value="90" class="b_months">January'11</option>
<option value="91" class="b_months">February'11</option>
<option value="92" class="b_months">March'11</option>
<option value="93" class="b_months">April'11</option>
</select>

I want to get the value(April'11)of the last option in ruby ,who can
help me?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top