Entering text into a text field using rspec

HI

I am new to rspec. I am at a web page and in that page I want to enter
in some text and then click send.

it “will enter in some text ‘asf’” do

end

what command would I used to enter in the text as I have searched
google but I cannot find any thing helpful. I do not want to use watir
as it relies on the ID and in our app the IDs change every time the
page is loaded.

I tried :textfield => ‘asf’

But I get and error as it does not like the '.

Check into capybara

On Jun 29, 2010, at 4:44 PM, tester86 [email protected] wrote:

HI

I am new to rspec. I am at a web page and in that page I want to enter
in some text and then click send.

Sorry - toppost is a habit - check out capybara and see how it can be
used stand alone with rspec to interact with the page