[wtr-general] Re: How do I get a URL parameter value

2009-08-18 Thread Marlon

Im getting an error retrieving src value which is https://url.com/
text.asp?p=xyzq=abc using attribute_value()

code: $ie.frame(:index, 1).attribute_value(src)

Error:
NoMethodError: undefined method `attribute_value' for #Watir::Frame:
0xfdbec50


thanks





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How do I get a URL parameter value

2009-08-18 Thread Raveendran P
Hi,

Are tried like this ?

@frame_src=$ie.frame(:index, 1).html




On Tue, Aug 18, 2009 at 11:39 AM, Marlon marlonmoja...@gmail.com wrote:


 Im getting an error retrieving src value which is https://url.com/
 text.asp?p=xyzq=abc https://url.com/%0Atext.asp?p=xyzq=abc using
 attribute_value()

 code: $ie.frame(:index, 1).attribute_value(src)

 Error:
 NoMethodError: undefined method `attribute_value' for #Watir::Frame:
 0xfdbec50


 thanks





 



-- 
Regards,
P.Raveendran
http://raveendran.wordpress.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How do I get a URL parameter value

2009-08-18 Thread Dylan

Can you do $ie.frame(:index, 1).src
?
-Dylan

On Aug 17, 11:09 pm, Marlon marlonmoja...@gmail.com wrote:
 Im getting an error retrieving src value which is https://url.com/
 text.asp?p=xyzq=abc using attribute_value()

 code: $ie.frame(:index, 1).attribute_value(src)

 Error:
 NoMethodError: undefined method `attribute_value' for #Watir::Frame:
 0xfdbec50

 thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---



[wtr-general] Re: How do I get a URL parameter value

2009-08-18 Thread Dylan

I was just offering another way he might do it. I'm not at my machine
w/ ruby/watir so I cant test it right now.

=Dylan

On Aug 18, 12:28 am, Raveendran P jazzezr...@gmail.com wrote:
 Hi Dylan,

 *Way 1:*

 Please provide the code/site URL

 I will try and let u know

 *Way 2:*

 puts $ie.frame(:index, 1).methods.sort

 Search the output contains src method or not ?

 Thanks



 On Tue, Aug 18, 2009 at 12:18 PM, Dylan mej...@gmail.com wrote:

  Can you do $ie.frame(:index, 1).src
  ?
  -Dylan

  On Aug 17, 11:09 pm, Marlon marlonmoja...@gmail.com wrote:
   Im getting an error retrieving src value which is https://url.com/
   text.asp?p=xyzq=abc using attribute_value()

   code: $ie.frame(:index, 1).attribute_value(src)

   Error:
   NoMethodError: undefined method `attribute_value' for #Watir::Frame:
   0xfdbec50

   thanks

 --
 Regards,
 P.Raveendranhttp://raveendran.wordpress.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Watir General group.
To post to this group, send email to watir-general@googlegroups.com
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
watir-general-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~--~~~~--~~--~--~---