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 jbailey...@gmail.com 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=clubclubcode=412state=CAzipcode=90210http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210
)

or

b.goto 
http://FooBar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210


Željko

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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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.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 zeljko.fili...@gmail.comwrote:

 On Wed, Jun 5, 2013 at 5:52 PM, Jim Bailey jbailey...@gmail.com 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=clubclubcode=412state=CAzipcode=90210http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210
 )

 or

 b.goto 
 http://FooBar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipcode=90210
 

 Željko

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

 watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
 watir-general+unsubscr...@googlegroups.com

 ---
 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
 watir-general+unsubscr...@googlegroups.com.
 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.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




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

2013-06-06 Thread Super Kevy
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 jbailey...@gmail.com 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 
 zeljko.fili...@gmail.comwrote:







  On Wed, Jun 5, 2013 at 5:52 PM, Jim Bailey jbailey...@gmail.com 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=clubclubcode=412state=CAzipc...http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipc...
  )

  or

  b.goto 
 http://FooBar.com/Portal/quote?source=clubclubcode=412state=CAzipc...http://foobar.com/Portal/quote?source=clubclubcode=412state=CAzipc...
  

  Željko

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

  watir-general@googlegroups.com
 http://groups.google.com/group/watir-general
  watir-general+unsubscr...@googlegroups.com

  ---
  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
  watir-general+unsubscr...@googlegroups.com.
  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.

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Re: Issues with execute_script on Win7/IE9

2013-06-06 Thread enroxorz
Is there any way to disable this? This is driving me up the wall since I am 
allowing active content from security...

On Wednesday, June 5, 2013 3:29:48 PM UTC-4, Andrew Leaf wrote:



 On Monday, June 3, 2013 9:28:50 AM UTC-5, enroxorz wrote:

 So I know that this issue was resolved here:

 https://groups.google.com/d/msg/watir-general/FqVBzjNuOqA/7HtFJoJYzzkJ

 but when I tested it I was running on Windows XP SP 3 with IE 8. We just 
 got new testing servers in that are Windows 2008 and IE9 and when I do the 
 following I get an error (attached is the test html file).

 b = Watir::Browser.new
 b.goto('file:///c:/test.html/')
 b.execute_script window.prompt = function() { return true; }

 Using Win7 and IE9, I noticed Internet Explorer restricted this webpage 
 from running scripts or ActiveX controls displayed on the bottom of my 
 browser when heading to test.html on my local machine.

 I had to click that before executing any javascript from that file.  

 Andre




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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Re: Cannot click on link using :href

2013-06-06 Thread Nikhil Nerkar
That works fine now. Thanks


On Wednesday, June 5, 2013 10:00:19 AM UTC+5:30, Nikhil Nerkar wrote:

 I am totally new to Watir World :)  facing a bsic problem:

 I am able to click a link by name 'In English' by using the below line of 
 code:

 @browser.link(:text,'In English').click

 However cannot click the same link using *:href* using below code:

 @browser.link(:href,'/lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088').click

 *HTML code is :*

 a href=/lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088
 


 *
 *
 *Getting error:*

 ruby new.rb
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2368:in 
 `assert_exists': Unable to locate object, using href and /lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088(Watir::Exception::UnknownObjectException)
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2597:in 
 `enabled?'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2372:in 
 `assert_enabled'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2542:in 
 `click!'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2528:in 
 `click'
 from new.rb:12
 Exit code: 1

 Also I have noticed that the *uid *at the end of the HTML code changes 
 every time I visit this page. Can that be the reason ?



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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[wtr-general] Re: Cannot click on link using :href

2013-06-06 Thread Nikhil Nerkar
Can you also suggest some good reference for learning Watir ?


On Wednesday, June 5, 2013 10:00:19 AM UTC+5:30, Nikhil Nerkar wrote:

 I am totally new to Watir World :)  facing a bsic problem:

 I am able to click a link by name 'In English' by using the below line of 
 code:

 @browser.link(:text,'In English').click

 However cannot click the same link using *:href* using below code:

 @browser.link(:href,'/lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088').click

 *HTML code is :*

 a href=/lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088
 


 *
 *
 *Getting error:*

 ruby new.rb
 c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2368:in 
 `assert_exists': Unable to locate object, using href and /lis/
 lisDeskTopAction.changeLanguage.do?method=changeLanguageLANGUAGE=enlis.request.page.uid=-234720088(Watir::Exception::UnknownObjectException)
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2597:in 
 `enabled?'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2372:in 
 `assert_enabled'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2542:in 
 `click!'
 from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1230/./watir.rb:2528:in 
 `click'
 from new.rb:12
 Exit code: 1

 Also I have noticed that the *uid *at the end of the HTML code changes 
 every time I visit this page. Can that be the reason ?



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

watir-general@googlegroups.com
http://groups.google.com/group/watir-general
watir-general+unsubscr...@googlegroups.com

--- 
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 watir-general+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.