Re: [wtr-general] Safari Watir / Webdriver - reasons for choosing watir or selenium...

2011-08-02 Thread Željko Filipin
On Tue, Aug 2, 2011 at 1:50 AM, qalady lau...@protopc.com wrote: My question is: How robust/functional is Safari Watir these days? I think this speaks for itself: https://github.com/redsquirrel/safariwatir/commits/master/ To make it clear, the last commit was almost a year ago. SafariWatir

Re: [wtr-general] Chrome is getting closed even I do not use browser.close() method.

2011-08-02 Thread Amit Bobade
Dear Željko, I am still facing this problem. Any updates? Thanks, Amit. 2011/7/22 Amit Bobade amit.sr...@gmail.com Thank you very much. Please let us know once you are done. Thanks in advance. On Fri, Jul 22, 2011 at 1:48 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Fri,

Re: [wtr-general] Chrome is getting closed even I do not use browser.close() method.

2011-08-02 Thread Željko Filipin
On Tue, Aug 2, 2011 at 10:43 AM, Amit Bobade amit.sr...@gmail.com wrote: I am still facing this problem. Any updates? As far as I understand the problem, it is on the Chromium side: http://code.google.com/p/chromium/issues/detail?id=87676 The ticket status is Started. Watch the ticket. Željko

Re: [wtr-general] Chrome is getting closed even I do not use browser.close() method.

2011-08-02 Thread Jari Bakken
Den 2. aug. 2011 kl. 10:43 skrev Amit Bobade amit.sr...@gmail.com: Dear Željko, I am still facing this problem. Any updates? You can follow this issue: http://code.google.com/p/chromium/issues/detail?id=87676 -- Before posting, please read http://watir.com/support. In short: search before

[wtr-general] The set method of file_field does not work for me

2011-08-02 Thread janssen
I used below method to set file path for file field, but after execute my code, the file dialog did not pop up, and browser hangs. ie.file_field(:name,'fileupload').set D:\\abc.pdf And then I changed the file_field.rb code (change method click_no_wait to click), please see below Change

[wtr-general] Not able to populate textarea

2011-08-02 Thread ivan_xu
watir version = 1.9.2 ruby version = 1.8.7 HI: If i try to fill the textarea I get the following error: Unable to locate element, using :class, slet_tx (Watir::Exception::UnknownObjectException) -- HTML Code - textarea class=slet_tx rows= cols= name=/textarea -- HTML Code

Re: [wtr-general] Not able to populate textarea

2011-08-02 Thread Željko Filipin
On Tue, Aug 2, 2011 at 12:09 PM, ivan_xu ivan0921...@gmail.com wrote: ie.text_field(:class, 'slet_tx').set('nice') Since text area is in a frame, you have to say it explicitly: ie.frame(:id = zone_main_iframe).text_field(:class = 'slet_tx').set('nice') Željko -- watir.com - community manager

[wtr-general] Re: Not able to populate textarea

2011-08-02 Thread ivan_xu
Thanks a lot , I see. On 8月2日, 下午6时14分, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Aug 2, 2011 at 12:09 PM, ivan_xu ivan0921...@gmail.com wrote: ie.text_field(:class, 'slet_tx').set('nice') Since text area is in a frame, you have to say it explicitly: ie.frame(:id =

Re: [wtr-general] Re: Object no longer attached to the DOM error on doing a exists call

2011-08-02 Thread Alister Scott
I have found testing an app that has a crazy amount of JavaScript that changes the DOM, that these exceptions are raised quite frequently. I personally prefer the Watir 1.X behaviour, as it personally means tests are more reliable for me. But, I understand the performance hit. Are we talking

Re: [wtr-general] Safari Watir / Webdriver - reasons for choosing watir or selenium...

2011-08-02 Thread Alister Scott
I think the iOS driver for webdriver is *definitely* not ready for prime time. For example, you can't even do a .click!!! http://code.google.com/p/selenium/issues/detail?id=1250 That issue has been open, and not looked at, since 1 Feb. Judging from that, I don't see if the iOS webdriver is

[wtr-general] Re: send_keys broke in Watir 1.9.2/rautomation 0.6.3

2011-08-02 Thread Jarmo Pertman
#send_keys accepts now only strings. It accepted accidentally array of VK_ codes in some previous version of RAutomation. Use better solutions to capture screenshots. win32screenshot gem can help you there https://rubygems.org/gems/win32screenshot and https://github.com/jarmo/win32screenshot Just

Re: [wtr-general] Re: send_keys broke in Watir 1.9.2/rautomation 0.6.3

2011-08-02 Thread Dmitriy Korobskiy
On 8/2/11 9:17 AM, Jarmo Pertman wrote: #send_keys accepts now only strings. It accepted accidentally array of VK_ codes in some previous version of RAutomation. Use better solutions to capture screenshots. win32screenshot gem can help you there https://rubygems.org/gems/win32screenshot and

[wtr-general] Entering XML in textarea

2011-08-02 Thread Trevor
watir version = 1.9.2 ruby version = 1.8.7 Hi, I need to read XML from a document and put it into a textarea. I use REXML to read the file, but when I try to dump this into the textarea I get an error and the field shows [object] eg file = File.new( C:/canoe1.xml ) doc =

Re: [wtr-general] Re: Object no longer attached to the DOM error on doing a exists call

2011-08-02 Thread Jari Bakken
Den 2. aug. 2011 kl. 14:19 skrev Alister Scott alister.sc...@gmail.com: But, I understand the performance hit. Are we talking much slower execution times? I don't think locating elements is the major bottleneck in browser tests in general, but it certainly can be in some cases. This is

Re: [wtr-general] Entering XML in textarea

2011-08-02 Thread Željko Filipin
On Tue, Aug 2, 2011 at 5:56 PM, Trevor ti_ma...@btopenworld.com wrote: file = File.new( C:/canoe1.xml ) Can you provide xml file, so we could try to reproduce the problem? Željko -- watir.com - community manager watir.com/book - author watirpodcast.com - host -- Before posting, please

Re: [wtr-general] Entering XML in textarea

2011-08-02 Thread Charley Baker
Try setting value instead of set. blah.value = doc Cheers, Charley On Tue, Aug 2, 2011 at 4:03 PM, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Tue, Aug 2, 2011 at 5:56 PM, Trevor ti_ma...@btopenworld.com wrote: file = File.new( C:/canoe1.xml ) Can you provide xml