[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

[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()

[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:

[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