[wtr-general] Re: cant get an element

2010-07-27 Thread ryanthescot
Thanks for the replies. I posted the question on Stack Overflow and figured it out from there. my_span = @@ie.span(:id, dnn_ctr353_Main_ctl00_ctl00_ctl00_ctl07_Field_048b9dfa-bc64-42e4-8bd5- b45385e5f45b_view_value) my_p = my_span.p(:class, wpFieldValue)

[wtr-general] Re: cant get an element

2010-07-20 Thread George
It looks like it's wrapped in a p tag, which should be accessible via Watir: puts @browser.p(:class, wpFieldValue).text This has worked for me in the past. -George On Jul 15, 2:18 am, ryanthescot ryanthes...@hotmail.com wrote: span class=wpFieldViewContent

[wtr-general] Re: cant get an element

2010-07-19 Thread Chuck van der Linden
When viewing this web page manually, is this value solo, or one of many similar values? How do you know when manually executing the test, which value you are trying to get? Is the ID value for the wpFieldValue span predictable? In theory browser.p(:class, wpFieldValue).text would return what