So if its breaking at the = sign then you are not encapsulating the
value as a string.
Something like this may be a low impact patch
myVar = '"' + url + '"'
puts myVar
or even
myVar = url.to_s
puts myVar




On Jun 6, 6:27 am, Jim Bailey <[email protected]> wrote:
> Neither of those worked. For now I am using this:
>
> b.goto(properties.getUrl.gsub("\n",'') + 'source=' +
> properties.getSource.gsub("\n",'') + '&' + 'xyzclubcode=' +
> properties.getxyzclubcode.gsub("\n",'') + '&' + 'state=' +
> properties.getState.gsub("\n",'') + '&' + 'zipcode=' +
> properties.getZipcode.gsub("\n",''))
> With some changes to my .rb file.
>
> And a reformatting of the .txt properties file to:
>
> url=http://Foo.Bar.com/Portal/quote?
> source=club
> xyzclubcode=212
> state=VA
> zipcode=20109
>
> I'll try to get back to this issue for a better answer.
>
> The links you sent earlier were somewhat helpful but I could not figure out
> how to transform the information into usable commands.
> I learned the %3D should replace the = sign.
>
> On Thu, Jun 6, 2013 at 6:38 AM, Željko Filipin 
> <[email protected]>wrote:
>
>
>
>
>
>
>
> > On Wed, Jun 5, 2013 at 5:52 PM, Jim Bailey <[email protected]> wrote:
>
> >> For now, can I forget about the properties file, and have the Watir
> >> script put the url directly in the address bar?
>
> > Sure, try this:
>
> > b.goto(URI.escape "
> >http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipc...<http://foobar.com/Portal/quote?source=club&clubcode=412&state=CA&zipc...>
> > ")
>
> > or
>
> > b.goto "
> >http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipc...<http://foobar.com/Portal/quote?source=club&clubcode=412&state=CA&zipc...>
> > "
>
> > Željko
>
> >  --
> > --
> > Before posting, please readhttp://watir.com/support. In short: search
> > before you ask, be nice.
>
> > [email protected]
> >http://groups.google.com/group/watir-general
> > [email protected]
>
> > ---
> > You received this message because you are subscribed to a topic in the
> > Google Groups "Watir General" group.
> > To unsubscribe from this topic, visit
> >https://groups.google.com/d/topic/watir-general/u5fJr43D74Y/unsubscri...
> > .
> > To unsubscribe from this group and all its topics, send an email to
> > [email protected].
> > For more options, visithttps://groups.google.com/groups/opt_out.

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

[email protected]
http://groups.google.com/group/watir-general
[email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to