Re: [wtr-general] Can't use = sign in URL.

2013-06-06 Thread Jim Bailey
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

Re: [wtr-general] Can't use = sign in URL.

2013-06-06 Thread Željko Filipin
On Wed, Jun 5, 2013 at 5:52 PM, Jim Bailey 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&zipcode=90210

Re: [wtr-general] Can't use = sign in URL.

2013-06-05 Thread John Fitisoff
m. Just google ruby read properties for more, probably better solutions. There are probably areas where the one above will fail.  From: Jim Bailey To: watir-general@googlegroups.com Sent: Wednesday, June 5, 2013 8:52 AM Subject: Re: [wtr-general] Can'

Re: [wtr-general] Can't use = sign in URL.

2013-06-05 Thread Jim Bailey
For now, can I forget about the properties file, and have the Watir script put the url directly in the address bar? If that is possible I'll need the commands to do so. I got nowhere with the links you sent. When I add p properties.getUrl to my script the output is there minus anything to the rig

Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Željko Filipin
On Tue, Jun 4, 2013 at 8:26 PM, Jim Bailey wrote: > b.goto(properties.getUrl) Add this before above line: p properties.getUrl That will display the contents of the variable. That is always helpful when debugging. The magic word is probably URL encoding[1]. Something like this should fix the

Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Dan
I think you're going to want to look into using yaml instead of flat text files. You'll want to start by looking here. http://www.ruby-doc.org/stdlib-1.8.7/libdoc/yaml/rdoc/YAML.html#method-c-parser On Tuesday, June 4, 2013 2:26:05 PM UTC-4, JimJamie wrote: > > I'm using Watir with Ruby 1.86. >

Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Jim Bailey
I'm using Watir with Ruby 1.86. I have a properties file that I point to when I fire up a Watir script. properties = TemplateProperties.new("../properties/template_properties.txt") Then it uses this: b.goto(properties.getUrl) to pull the correct url. I use several. When I attempt to fire up

Re: [wtr-general] Can't use = sign in URL.

2013-06-04 Thread Željko Filipin
How is this related to Watir? I have no idea what you are talking about. Moar context, please. :) Željko -- https://leanpub.com/watirbook On Tue, Jun 4, 2013 at 5:59 PM, JimJamie wrote: > > It seems to stop looking at the first equal sign. > Is there a way to rewrite the equals sign and get th

[wtr-general] Can't use = sign in URL.

2013-06-04 Thread JimJamie
It seems to stop looking at the first equal sign. Is there a way to rewrite the equals sign and get the same result? I have something like this in my properties file. #url=http://FooBar.com/Portal/quote?source=club&clubcode=412&state=CA&zipcode=90210 -- -- Before posting, please read http://wa