views:

128

answers:

1

I have HTML that looks like this:

<input custom_attribute="so cool" type="text" />

I would like to enter text in it using Watir.

+1  A: 
browser.text_field(:xpath , "//input[@custom_attribute='so cool']/").set("even more cool")

Sources:

Željko Filipin