[wtr-general] Re: how to click link with CTRL key pressed in watir?

2009-08-18 Thread ashokmpm password
Hi Dylan Thanks for your reply. But still im stucked. I have to send CTRL key event and at the same time click the link , so that link is opened which is blocked. so how can i do this? Actually im clicking link as -- $ie.link(:href, javascript:openSearchWindow()).click But this click i

[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] How to select the row under Grid which is an extjs code using WATIR

2009-08-18 Thread ashokmpm password
Hi,   I have to select the row under Grid which is an extjs code.   When we have a grid, and want to select a row in the grid, for some reason we cannot select it. We have sent click events and it appears that we're getting the right row (watir highlights the row in the browser), but our

[wtr-general] automating gmail using watir

2009-08-18 Thread shailesh
I am a new user of Watir. I did not get the solution thread so posting here: This is a program to automate gmail to compose mail and check in the sent item but it gives the following error : ruby autogmail.rb Loaded suite autogmail Started E Finished in 11.454 seconds. 1) Error:

[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

[wtr-general] doubt regarding puts() and gets() function

2009-08-18 Thread shailesh
have a look at the code : puts(He) puts(h) i=gets() puts(i) a very simple code but the output was : ruby sunny.rb hi He h hi Exit code: 0 Here 'hi' was the input I gave. It always asks the user input before executing the output My question is how can I use puts() to print

[wtr-general] Re: doubt regarding puts() and gets() function

2009-08-18 Thread Raveendran P
Hi, Additionally This is the forum for Only Watir Users. So please post your next ruby related question to Ruby-forums(http://ruby-forum.com). On Tue, Aug 18, 2009 at 3:10 PM, Raveendran P jazzezr...@gmail.com wrote: Hi, 1. Go to command prompt 2. c:\WHERETHEcODEFolDER ruby sunny.rb 3.

[wtr-general] Re: small problem regarding modules

2009-08-18 Thread Raveendran P
*Hi, puts(hi) -- * hi -- returns He but you mentioned like puts(hi).So it returns the nil for final puts which was added by you. Thanks On Tue, Aug 18, 2009 at 3:11 PM, shailesh shaileshbt...@gmail.com wrote: This is my module in a file named sunny.rb: Sunny.rb: module Sunny

[wtr-general] Re: small problem regarding modules

2009-08-18 Thread shailesh jha
Hi, Thanks , --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines:

[wtr-general] Re: Modal dialog window opened from page_load event

2009-08-18 Thread Pallavi Sharma
Hi I have also encountered a similar problem, of handling popup during page load and page close events. Is there any solution for the same in watir?? On Tue, Aug 18, 2009 at 2:44 PM, Ste stefano.porcare...@poste.it wrote: Hi, I am not able to handle modal dialog window controls when such a

[wtr-general] Re: :index = 0 with firewatir

2009-08-18 Thread Alexandre
Le vendredi 14 août de l'année 2009, vers 20 heures et 20 minutes, Jari Bakken écrivait: The best solution for getting the last item in this case is: browser.links.select { |l| l.text == 'foo' }.last That is exactly what I was looking for. (And yes I had to search in text) thank you for

[wtr-general] Re: IE.attach doesn't work properly in the script

2009-08-18 Thread balbao
HI Dylan, Do i have to try the new version of Watir? On Aug 17, 11:02 am, balbao ramkrishn...@gmail.com wrote: Dylan, Adding require Watir/ie didn't help me either. ruby -v ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] puts Watir::IE::VERSION 1.6.2 I use ruby 1.8.6 watir

[wtr-general] Re: Watir Logo Refresh Competition

2009-08-18 Thread Željko Filipin
Alister, Have you received some logos? Željko -- http://watirpodcast.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com

[wtr-general] Re: IE.attach doesn't work properly in the script

2009-08-18 Thread balbao
HI, At last, i sorta understood the problem. After the month is changed, the page is getting re-loaded again to display the dates for that month. The implicit wait is called. I tried another approach and ran into another issue. If i first change the year using ie.text_field(:id, /year/).set

[wtr-general] Re: Fire Watir and Safari Watir

2009-08-18 Thread Loft_Tester
tables are supported. we have many table tests On Aug 7, 8:35 am, Angrez Singh ang...@gmail.com wrote: I think FireWatir does support Table element. look at the unit tests for more details. Thanks, Angrez On Fri, Aug 7, 2009 at 4:24 PM, Pallavi Sharma write2pall...@gmail.comwrote:

[wtr-general] Re: automating gmail using watir

2009-08-18 Thread Bill Agee
Hi, I notice you are using click_no_wait when submitting your gmail credentials. Could it be that your script moves on to the next line (finding the iframe) before the browser has finished loading the main document after login? What happens if you replace click_no_wait with click? But even if

[wtr-general] Re: Modal dialog window opened from page_load event

2009-08-18 Thread Charley Baker
Watir has a page checker that allows you to run specific methods on page load. Something along the lines of this: module PageCheckers HANDLE_MODAL = lambda {|ie| ie.modal_dialog.button(:id, 'ok').click} # or whatever, do something with your modal dialog end register the method ie.add_checker

[wtr-general] Firefox.new closes all FF windows, then spins indefinitely

2009-08-18 Thread lsiden
On my Linux box, I installed the JSSH addon to Firefox and tested it with telnet localhost 9997. In irb, when I enter b=Firefox.new, it 1. opens a new window, 2. closes all windows, 3. spins for a long time while I see the CPU indicator on my system monitor applet running at ~50%. Has this