[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)
return my_p.text



On Jul 20, 7:16 pm, George george.sand...@gmail.com wrote:
 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
  id=dnn_ctr353_Main_ctl00_ctl00_ctl00_ctl07_Field_048b9dfa-
  bc64-42e4-8bd5-b45385e5f45b_view_value
  p class=wpFieldValue Bishop/p
  /span

  I am trying to get the value 'Bishop' from this HTML to use in an if
  statement, but I cant find a way of getting the element.

  Can someone advise how i might do so?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com


[wtr-general] cant get an element

2010-07-15 Thread ryanthescot

span class=wpFieldViewContent
id=dnn_ctr353_Main_ctl00_ctl00_ctl00_ctl07_Field_048b9dfa-
bc64-42e4-8bd5-b45385e5f45b_view_value
p class=wpFieldValue Bishop/p
/span

I am trying to get the value 'Bishop' from this HTML to use in an if
statement, but I cant find a way of getting the element.

Can someone advise how i might do so?

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

You received this message because you are subscribed to 
http://groups.google.com/group/watir-general
To post: watir-general@googlegroups.com
To unsubscribe: watir-general+unsubscr...@googlegroups.com