[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Jarmo
It's working for me on google.com too - so it means that it is related with IE9 and google.com? Seems to be interesting :) Jarmo On Wed, Aug 24, 2011 at 3:13 AM, Alister Scott alister.sc...@gmail.comwrote: Using IE9.0.8112 on Windows 7 ___

[wtr-general] Handle assertion

2011-08-24 Thread Dmitri Karusar
Hi. Can't make it running, if assertion failed then to capture screenshot. I got a solution how to capture screenshot: def screen_capture ... ... end Then I check in script: assert($ie.frame(:name,mainFrame).contains_text(Object saved), +++ +++FAILED! Changes were not saved) And if this

[wtr-general] Focusing on a window that's spawned by a select_list value

2011-08-24 Thread GJHmf
Hi all, In a slightly different twist to Emad's select_list issue yesterday; I have another select_list query. The site I'm testing has a page that spawns a new data window when a specified select_list value is chosen. To date, I've never been able to automate this, and I've been having this as

[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
Definitely an IE9 thing. Tried on IE8 with Ruby 1.9.2 and all fine. I don't know enough about the source code to know what the error actually means: NoMethodError: unknown property or method: `createEvent' HRESULT error code:0x80020006 Unknown name. -- Before posting, please read

[wtr-general] Re: Handle assertion

2011-08-24 Thread joedio
Look into Ruby's Begin/rescue/ensure/end Just Google 'ruby begin rescue ensure' for details In a nutshell its format is... begin # Code you want to trap errors on goes here # such as your assert statement rescue # code to deal with errors goes here # such as calling your screen

[wtr-general] Re: Focusing on a window that's spawned by a select_list value

2011-08-24 Thread joedio
You didn;t mention if oyu are using Watir Firewatir or watir- webdriver. If using Watir look into Waitr:IE.attach() If using Firewatir look into FireWatir::Firefox.attach() If using watir-webdirver look into browser.window.().use Hope that helps, Joe On Aug 24, 2:35 am, GJHmf

[wtr-general] watir-webdriver / chrome / ubuntu 11.01 11.10a

2011-08-24 Thread Kyle Korbel
Hello all, I am having a small issue using the chrome browser with Ruby and the Watir-webdriver. Has any one else had this issue? I cannot figure it out. I have it up and running on a Win 7 box but not on my Linux machines. I get the same error with both. I listed it below. One box is Ubuntu

[wtr-general] Re: watir-webdriver / chrome / ubuntu 11.01 11.10a

2011-08-24 Thread joedio
Kyle, Looks like you've followed the info at: http://code.google.com/p/selenium/wiki/ChromeDriver Including: a) Downloading the chrome driver for your OS b) Installed it in a location on the file system that is in the OS search path (e.g. /usr/bin/) See if /usr/bin is in the PATH used

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

2011-08-24 Thread Jari Bakken
Some people are reporting quite significant performance issues after this change: https://github.com/jarib/watir-webdriver/issues/92 Jari -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

Re: [wtr-general] Re: watir-webdriver / chrome / ubuntu 11.01 11.10a

2011-08-24 Thread Kyle Korbel
Well, it looks like */usr/bin/* is in the Ruby PATH. I don't need to run the JAVA standalone selenium server (selenium-server-standalone-2.4.0.jar) do I? Again, I don't on my windows box which is working. Thank you for the help! Kyle On Wed, Aug 24, 2011 at 8:24 AM, joedio joe...@comcast.net

[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Hugh McGowan
Very strange. I'm on IE9.0.8112.16421/Win7/Ruby 1.8.7 and I *don't* see this error so there might be something with Ruby 1.9.2...I'll take a look -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com

[wtr-general] Re: Watir support for Ruby 1.9.2?

2011-08-24 Thread Jarmo Pertman
It seems to be IE9 and Ruby 1.9.2 thing indeed. Jarmo On Aug 24, 5:51 pm, Hugh McGowan colinsda...@gmail.com wrote: Very strange. I'm on IE9.0.8112.16421/Win7/Ruby 1.8.7 and I *don't* see this error so there might be something with Ruby 1.9.2...I'll take a look -- Before posting, please read

[wtr-general] Re: Focusing on a window that's spawned by a select_list value

2011-08-24 Thread GJHmf
My apologies, I'm using Watir. (environement: Ruby 1.8.7 / Watir 2.0.1) I can attach to windows, and do it all the time in my tests. In a simiar tests where a window is spawned on a button press; 'click_no_wait' does work well, and I can successfully attach to the window. What I'm having

[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Hugh McGowan
I tried on IE9/Win7/Ruby 1.9.2 and I'm still not seeing the problem. Any ideas? Hugh -- 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

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
I will crank up a VM with win7, ie9, ruby 1.9.2 and watir 2.0.1 and see if i can reproduce it On Wed, Aug 24, 2011 at 12:14 PM, Hugh McGowan colinsda...@gmail.comwrote: I tried on IE9/Win7/Ruby 1.9.2 and I'm still not seeing the problem. Any ideas? Hugh -- Before posting, please read

[wtr-general] Re: Post Requests

2011-08-24 Thread Mohsen Qureshi
Cheers Adam, i will do BTW thanks for mentioning Mechanize, I looked it up and that helped alot Cheers Mo On Aug 23, 6:55 pm, Adam Reed reed.a...@gmail.com wrote: Mo, your question is not Watir-related as you have described it, so you may have better luck using another Google group.  I have

[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Jarmo
Maybe it has something to do with different patch levels... what ruby versions do you guys exactly have? Also, Hugh, are you using Watir 2.0.1 for sure? Jarmo On Wed, Aug 24, 2011 at 6:14 PM, Hugh McGowan colinsda...@gmail.com wrote: I tried on IE9/Win7/Ruby 1.9.2 and I'm still not seeing the

[wtr-general] How do I find the id for element which has a label ?

2011-08-24 Thread yadula chodankar
I am trying to find id of an element where the label for is 'Inv 20100829 amount'. I need to set the amount for this invoice as 16. I have tried a number of things using search online for it and have been unsuccessful in finding solution. The element is defined as label

[wtr-general] watir 2.0.1 table rows method broken

2011-08-24 Thread Michael
I've created this bug report for an issue I am seeing, curious if anyone else has run into the same issue or is it just my environment? I completely removed ruby today to start completely fresh, and it still occurs. http://jira.openqa.org/browse/WTR-486 Summary: The rows/trs method on a table

[wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
I'm on the latest 1.9.2: p290. -- 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

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
Fresh install windows 7 32-bit ruby 1.9.2-p290 rubygems -v 1.8.9 ie 8 google worked fine etsy worked fine windows 7 32-bit ruby 1.9.2-p290 rubygems -v 1.8.9 ie 9 google worked fine etsy worked fine google: browser.goto 'www.google.com' p browser.text_field(:name = 'q').exists? true p

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
Hey Oscar, Does .set work on google? That was the problem. .exists? and .html work fine. Cheers, Alister -- 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

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
yeah it worked fine for .set too and .click on the button On Wed, Aug 24, 2011 at 9:35 PM, Alister Scott alister.sc...@gmail.comwrote: Hey Oscar, Does .set work on google? That was the problem. .exists? and .html work fine. Cheers, Alister -- Before posting, please read

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
It looks like the following IE9 specific code in element.rb:341 is causing the problem. Does anyone know about this code? I commented out the IE9 section, and just used object.fireEvent(event) and it worked fine. What's the reason for this code? def dispatch_event(event) if

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
It looks like my freshly installed IE9 browser uses IE8 Document standards which causes a problem in Watir. I wonder why Oscar's doesn't fail. Maybe it uses IE9 Document standards -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
It looks like google add a content=IE_8 header to the page to force IE9 to revert to IE8, but Watir thinks it's IE9! http://msdn.microsoft.com/en-us/library/cc288325%28v=vs.85%29.aspx -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice.

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
I will crank up my VM again and mess with it. Maybe try reinstalling ie9 and see if that solves the issue On Wed, Aug 24, 2011 at 10:09 PM, Alister Scott alister.sc...@gmail.comwrote: It looks like google add a content=IE_8 header to the page to force IE9 to revert to IE8, but Watir thinks

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
I don't think that'll help as google will force it to use IE8 standards. Cheers Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott There are two ways to get enough: One is to continue to accumulate

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
yeah i dont see that the google i see when i look at the tests has meta http-equiv=X-UA-Compatible content=IE=9/ for .com, .ca and .com.br On Wed, Aug 24, 2011 at 10:13 PM, Alister Scott alister.sc...@gmail.comwrote: I don't think that'll help as google will force it to use IE8 standards.

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread Alister Scott
maybe it's a google.com.au thing cheers Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com LinkedIn: http://www.linkedin.com/in/alisterscott There are two ways to get enough: One is to continue to accumulate more and more. The other is to desire

Re: [wtr-general] Re: [Wtr-development] Watir support for Ruby 1.9.2?

2011-08-24 Thread bis
I checked .com.au and i get the same thing. thats pretty odd then. On Wed, Aug 24, 2011 at 10:35 PM, Alister Scott alister.sc...@gmail.comwrote: maybe it's a google.com.au thing cheers Alister Scott Brisbane, Australia Watir Web Master: http://watir.com Blog: http://watirmelon.com

[wtr-general] Re: watir 2.0.1 table rows method broken

2011-08-24 Thread Alister Scott
Yeah, it looks bust. You can use: browser.table(:id, 'administrators').each do |row| puts puts row.inspect puts row.text end which works, but isn't watir-webdriver compatible. Cheers, Alister -- Before posting, please read http://watir.com/support. In short: search before you ask,

Re: [wtr-general] Re: watir 2.0.1 table rows method broken

2011-08-24 Thread Dmitriy Korobskiy
On 8/24/11 9:48 PM, Alister Scott wrote: Yeah, it looks bust. You can use: browser.table(:id, 'administrators').each do |row| puts puts row.inspect puts row.text end which works, but isn't watir-webdriver compatible. Cheers, Alister -- Before posting, please read

[wtr-general] Re: IE 9 execute_script broken

2011-08-24 Thread parolkar
Hi Michael, This was a bug which was fixed in this commit : https://github.com/bret/watir/commit/f9b351c99352160d6becec4bd1ec1d54f570bc18 Are you still facing this issue, bring it to my attention in detail and I will look at it :-) -parolkar On Aug 12, 11:10 pm, Michael mmcwill...@gmail.com

[wtr-general] Re: How do I find the id for element which has a label ?

2011-08-24 Thread Alister Scott
You can't set a label, you need to use the input (known in watir as text_field) @ie.text_field(:id = 'adjustment_invoices_ attributes_6_amount').set '16' -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com