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. > > 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 a Watir script I do not get the website that I'm > looking for when I use the url in my previous (original) post, given to me > today to test with. > When I copy and paste the url into the browser address bar it works fine. > When I copy and paste the url into the browser address bar, up to the > first = sign I get the same result as when I try to fire it up in Watir. > So, I'm pretty sure Watir/Ruby interprets the = as something else. (like, > oh this must be a new row) > I did some research before I posted. > Someone else had a similar issue where the equals sign was replaced with > something like %3D. It worked for them, not for me. > > > On Tue, Jun 4, 2013 at 1:05 PM, Željko Filipin > <[email protected]<javascript:> > > wrote: > >> 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 <[email protected]<javascript:> >> > wrote: >> >>> >>> 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://watir.com/support. In short: search >>> before you ask, be nice. >>> >>> [email protected] <javascript:> >>> http://groups.google.com/group/watir-general >>> [email protected] <javascript:> >>> >>> --- >>> 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] <javascript:>. >>> >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> >> -- >> -- >> Before posting, please read http://watir.com/support. In short: search >> before you ask, be nice. >> >> [email protected] <javascript:> >> http://groups.google.com/group/watir-general >> [email protected] <javascript:> >> >> --- >> 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/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> For more options, visit https://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.
