[wtr-general] How to convert Watir scripts to SmartClient Application.

2009-08-14 Thread bharadwaj
Hi Friends, we have developed nearly around 200 scripts witth WATIR. The applicaiton is a web applicaiton for a credit card domain. We have extensively used all IE objects and methods in the scripts. The pop up message are handled with @@autoit addin software. The reports are prepared with

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

2009-08-14 Thread balbao
HI, In my application, to enter a date for a field, we need to do it using the calendar icon. This is the only option to enter data in that field. The code i wrote for this is $ie.image(:src, /calendar/).click sleep(7) $ie2 = Watir::IE.find(:title, /Calendar/) $ie2.select_list(:id,

[wtr-general] WIN32OLERuntimeError: navigate when opening a new browser

2009-08-14 Thread Marlon
Hi, please help I'm getting an error when trying to open a new browser. class TSuite Test::Unit::TestCase def test_testcase1 $ie = Watir::IE.new end def test_testcase2 $ie = Watir::IE.new error here end def teardown $ie.close end end Error: WIN32OLERuntimeError:

[wtr-general] Re: WIN32OLERuntimeError: navigate when opening a new browser

2009-08-14 Thread Marlon
Problem solved. found the solution here: http://jira.openqa.org/browse/WTR-304 edited ie-class.rb with this: def close return unless exists? @closing = true @ie.stop wait chwnd = @ie.hwnd.to_i @ie.quit while Win32API.new(user32,IsWindow, 'L', 'L').Call(chwnd) == 1 sleep 0.3

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Durgesh Nadkarni
Hi Raveendran, It works.. Thanks a lot.. Regards Durgesh. --- On Thu, 13/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P jazzezr...@gmail.com Subject: [wtr-general] Re: How to click the link in dynamically generated ajax content? To: watir-general@googlegroups.com Date:

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Raveendran P
Hi Durgesh, Cool ! Let me know which code solved your issue ? On Fri, Aug 14, 2009 at 4:06 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi Raveendran, It works.. Thanks a lot... Regards Durgesh. --- On *Thu, 13/8/09, Raveendran P jazzezr...@gmail.com* wrote: From: Raveendran P

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Durgesh Nadkarni
Hi, The same code which you have given in the previous mail. check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end Regards Durgesh. --- On Fri, 14/8/09, Raveendran P jazzezr...@gmail.com wrote: From: Raveendran P

[wtr-general] Re: How to click the link in dynamically generated ajax content?

2009-08-14 Thread Raveendran P
Fine. On Fri, Aug 14, 2009 at 5:48 PM, Durgesh Nadkarni fordurg...@yahoo.co.inwrote: Hi, The same code which you have given in the previous mail. check=browser.link(:id,PageLinkDisabled).enabled? if check == true It is Enabled. Continue your work else It is Disabled end Regards

[wtr-general] :index = 0 with firewatir

2009-08-14 Thread Alexandre
Hello, using firewatir, ff.link(:text = foo,:index = 2).click works fine but I would like to click on the last link found on the page. Then ff.link(:text = foo,:index = 0).click should work. But firewatir can not find this element. Do you have another solution ? Thank you. -- Alexandre Delanoƫ

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

2009-08-14 Thread Michael Hwee
: index= 0 is not the last item. - Original Message From: Alexandre neonoe123...@gmail.com To: WATIR watir-general@googlegroups.com Sent: Friday, August 14, 2009 5:40:55 AM Subject: [wtr-general] :index = 0 with firewatir Hello, using firewatir, ff.link(:text = foo,:index =

[wtr-general] Re: ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository

2009-08-14 Thread anna barbara ostrowska
It did not help. Any other ideas? I have not such a problem in the past. Thanks in advance. Anna 2009/8/10 Charley Baker charley.ba...@gmail.com The most likely situation is that you're behind a proxy server:

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

2009-08-14 Thread Jari Bakken
On Fri, Aug 14, 2009 at 5:49 PM, Michael Hweemichael_h...@yahoo.com wrote: : index= 0 is not the last item. Well, that depends on how the 1-indexed Watir collections are implemented. :) The best solution for getting the last item in this case is: browser.links.select { |l| l.text ==

[wtr-general] Re: ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository

2009-08-14 Thread Jason Trebilcock
Run the following at the command line:gem sources This will list out the sources configured on your system. And, if that fails, then try the following: gem env This lists out your current RubyGems environment. And if all of those fail, then I'd be willing to hazard a guess that you may want to

[wtr-general] Re: click extjs tabs

2009-08-14 Thread Eric Thompson
I wish you had posted this months ago :-) I had to do exactly what you did but had to figure it all out myself. Sadly, this solution does not work in IE8 standard mode. It works fine in IE7 and IE8 complaint mode but not in standard mode. The right click still works fine in IE8 standard mode

[wtr-general] Re: ERROR: http://gems.rubyforge.org/ does not appear to be a repository ERROR: could not find gem watir locally or in a repository

2009-08-14 Thread anna barbara ostrowska
thanks i will try that. 2009/8/14 Jason Trebilcock jason.trebilc...@gmail.com Run the following at the command line: gem sources This will list out the sources configured on your system. And, if that fails, then try the following: gem env This lists out your current RubyGems environment.

[wtr-general] Re: click extjs tabs

2009-08-14 Thread Eric Thompson
Actually, it does seem that this method does work in IE8 standard mode, just that the pixels were slightly off. I did not have the extra push of two pixels in my code that you had in yours and this seemed to be the difference between IE7/IE8 complaint mode and IE8 standard mode. BTW, 1 pixel

[wtr-general] How to get all links inside an object

2009-08-14 Thread Marlon
Hi, I just want to ask how can I get all the links inside an object (ex. table) using ie.links? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to