How can I have watir recognize an input tag with a custom class? -



How can I have watir recognize an input tag with a custom class? -

in our application have input tags next attrbutes:

<input class=input-time id=projects-projects_project_0_task_0_entryhours_0>

i have tried of watir input methods nil works recognize object. can shed little lite me?

my watir version 1.6.5.

summary page @ watir wiki links few pages lot of useful data. take @ how , what, html elements supported watir , ways available identify html element.

examples (tested on mac os 10.6 firewatir 1.6.6.rc1):

browser.text_field(:id => "projects-projects_project_0_task_0_entryhours_0").set "test" browser.text_field(:id => /project_0/).set "test" browser.text_field(:class => "input-time").set "test"

watir

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -