[wtr-general] Re: getting started with Watir and Watir-RSpec

2016-10-09 Thread Jarmo Pertman
Hello, watir-rspec isn't needed per se, which means that you can use just watir itself. As stated in watir-rspec readme , it will make it slightly easier to manage browser opening/closing, adds few helpful matchers and creates nice

[wtr-general] Re: goto method not found

2016-10-09 Thread Jarmo Pertman
"type: :request" is used so that RSpec would include Watir-specific helpers only into specs where they are actually needed (so-called request/integration type specs) and not into every test (e.g. regular unit tests, controller tests, model tests etc.). You can remove that additional filter,

[wtr-general] watir-rails 2.0.0 released

2016-09-24 Thread Jarmo Pertman
watir-rails 3.0.0 has been released, which adds Watir 6.0 support. -- -- 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 ---

[wtr-general] watir-rspec 3.0.0 released

2016-09-24 Thread Jarmo Pertman
watir-rspec 3.0.0 has been released, which adds Watir 6.0 support. -- -- 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] Watir 6.0 Beta needs testers

2016-09-24 Thread Jarmo Pertman
Did "beta-testing" using Watir 6.0.0.beta4 on one of my real-life projects, which used Watir 5.x before that. Almost everything worked as expected, but had to create one issue in GitHub. I also noticed that watir-rspec (https://github.com/watir/watir-rspec) and watir-rails

[wtr-general] Re: file_field().set crashing watir

2014-07-21 Thread Jarmo Pertman
Can you show us the whole backtrace? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, July 18, 2014 10:39:54 PM UTC+3, Mike Malandra wrote: browser.file_field(id: 'file_APP').when_present.set(@image) where @image = File.dirname(__FILE__) + '/bb.jpg

[wtr-general] Re: Screenshot on remote machine thorugh Remote Desktop with watir-classic

2014-04-23 Thread Jarmo Pertman
Hi! Read this RAutomation issue - https://github.com/jarmo/RAutomation/issues/69 It is not related directly with Watir, but the problem described there is the same. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, April 22, 2014 12:12:21 PM UTC+3, Stefano

[wtr-general] Re: Embed screenshot in Watir-rspec report (not just for failed tests)

2014-04-18 Thread Jarmo Pertman
monkey-patching, but using regular OO programming practices :) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, April 18, 2014 10:30:21 AM UTC+3, Arjen Ruiterkamp wrote: Hi Jarmo, thanks for replying I'll clarify a bit what I would like in my rspec report. I

[wtr-general] Re: Embed screenshot in Watir-rspec report (not just for failed tests)

2014-04-18 Thread Jarmo Pertman
#execute_script by returning some JavaScript object back to Ruby and then asserting there. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, April 18, 2014 1:58:13 PM UTC+3, Jarmo Pertman wrote: Hi! Unfortunately there's no built-in support for such a requirement

Re: [wtr-general] Page Object framework

2014-04-17 Thread Jarmo Pertman
I'd recommend test-page (https://github.com/jarmo/test-page) because it is really lightweight and easy to learn. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, April 16, 2014 1:16:31 AM UTC+3, Oscar.Rieken wrote: yes, me and pedro did an update a few

[wtr-general] Re: Embed screenshot in Watir-rspec report (not just for failed tests)

2014-04-17 Thread Jarmo Pertman
Hi! Are you saying that you want to take screenshots after every spec? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, April 15, 2014 1:07:04 PM UTC+3, Arjen Ruiterkamp wrote: Hello, For some acceptance tests I want to include screenshots, which are made

Re: [wtr-general] Re: Need info about how to get browser version in watir classic and about ie8 and ie9 support.

2014-04-10 Thread Jarmo Pertman
You can also use Watir::IE.version or Watir::Browser.version depending of the version of watir/watir-classic used. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, April 10, 2014 4:51:00 PM UTC+3, Oscar.Rieken wrote: and on a second note I would probably

[wtr-general] Re: Watir-rspec still requires browser variables when executing browser methods?

2014-03-22 Thread Jarmo Pertman
I'd recommend you to move your browser-based specs to requests/integration directory instead, because this is what rspec-rails expects and gives you some additional helpers. Here's the relevant code: https://github.com/rspec/rspec-rails/blob/master/lib/rspec/rails/example.rb#L46-L51 Also, in

[wtr-general] Re: click_no_wait problem with IE8 but fine with IE9

2014-01-10 Thread Jarmo Pertman
Hi! I have written about debugging #click_no_wait long time ago: http://itreallymatters.net/post/378669758/debugging-watirs-click-no-wait-method-problems This might still apply nowadays. Jarmo On Thursday, January 9, 2014 9:48:34 AM UTC+2, Stefano wrote: Hi, no one has had the same problem?

[wtr-general] Re: problem with using watir and win32ole together

2014-01-10 Thread Jarmo Pertman
Why are you requiring win32ole in the first place? If you end up loading watir-classic, then it will be loaded for you. Or doesn't it? Jarmo On Thursday, January 9, 2014 1:33:55 PM UTC+2, marcwest...@gmail.com wrote: the order of the requires are ... require 'rubygems' require 'watir'

[wtr-general] Re: rautomation autoit adapter deprecated?

2014-01-05 Thread Jarmo Pertman
: https://github.com/jarmo/RAutomation/issues/69 Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, January 2, 2014 7:24:13 PM UTC+2, Champ wrote: I am using the rautomation autoit adapter with watir-classic 3.7.0. Whenever I run my scripts, I get a message

Re: [wtr-general] Re: watir, watir-webdriver, watir-classic: history and current state?

2013-12-25 Thread Jarmo Pertman
It's more or less the same. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, December 23, 2013 11:08:28 PM UTC+2, Madhu Ganesh wrote: Any update on this conversation? I'd like to know how it compares as of today. Thanks Madhu. -- -- Before posting

[wtr-general] Re: test is taking a long time in webdriver v classic

2013-12-24 Thread Jarmo Pertman
I have also noticed that as soon as you go down to table's row and cell levels (e.g using #td and #tr methods) then it becomes really, really, reaay slow when using webdriver. Not sure about the reason though. Maybe Jari can comment on that? Jarmo Pertman - IT does really matter

[wtr-general] Re: Segmentation Fault on browser.alert.ok

2013-11-27 Thread Jarmo Pertman
Hi! The problem is with current version (1.9.3) of ffi gem. Downgrade it to 1.9.0. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, November 25, 2013 6:31:31 PM UTC+2, Liz Goodson wrote: I am doing a feasibility study on using watir classic to automate our

[wtr-general] Re: Error selec_list on modal dialog

2013-11-24 Thread Jarmo Pertman
This is fixed with commit https://github.com/watir/watir-classic/commit/8b6b8445686e53b7929d45d75bb8f61e5989e28b Thanks for reporting it! Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, November 18, 2013 7:47:19 PM UTC+2, Justin Ko wrote: I created an issue

[wtr-general] Re: does watir classic, not webdriver support IE 10 ?

2013-11-01 Thread Jarmo Pertman
to problematic file '# encoding: utf-8' and Encoding.default_external = Encoding::UTF_8 Encoding.default_internal = Encoding::UTF_8 But none of these helped. On Sunday, September 29, 2013 7:48:42 PM UTC+5:30, Jarmo Pertman wrote: I have tried it even with Ruby 2.0. There shouldn't be any

[wtr-general] Re: does watir classic, not webdriver support IE 10 ?

2013-09-29 Thread Jarmo Pertman
I have tried it even with Ruby 2.0. There shouldn't be any problems with 1.9.3 too. What kind of problems are you seeing? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, September 28, 2013 5:42:06 PM UTC+3, Anukul wrote: Jarmo, what version of ruby did you

Re: [wtr-general] watir-rspec 1.0 released

2013-09-23 Thread Jarmo Pertman
Yes! It supports both - watir-webdriver and watir-classic. Jarmo On Monday, September 23, 2013 3:55:37 PM UTC+3, Eason wrote: great job! does it support watir-webdriver? 2013/9/21 Jarmo jar...@gmail.com javascript: Hi! Released watir-rspec 1.0: * add installation binary watir-rspec

[wtr-general] Re: file_upload error

2013-09-23 Thread Jarmo Pertman
What version of ffi gem are you using? Try upgrading it to the latest version and if you have already the latest, then try downgrading it. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, September 23, 2013 6:22:34 AM UTC+3, AAA wrote: Hi everyone, I'm

[wtr-general] Re: Watir Installation Issue

2013-09-17 Thread Jarmo Pertman
The problem is in the currently latest version of mini_magick (3.6.0) gem. See the issue here: https://github.com/minimagick/minimagick/issues/145 To install Watir now, install previous version of mini_magick first and then watir: gem install mini_magick -v 3.5.0 gem install watir Jarmo

[wtr-general] Re: which version of watir can i install

2013-09-17 Thread Jarmo Pertman
Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, September 16, 2013 2:15:39 AM UTC+3, Rakesh Kapoor wrote: i run ruby C:\Users\ruby -ver ruby 1.8.7 (2012-10-12 patchlevel 371) [i386-mingw32] C:\Users\gem install watir ERROR: Error installing watir

Re: [wtr-general] Watir WebDriver Vs Selenium

2013-09-15 Thread Jarmo Pertman
Biggest difference is API. Check out following short articles: http://watirmelon.com/2010/04/10/watir-selenium-webdriver/ http://watirmelon.com/2011/05/05/selenium-webdriver-vs-watir-webdriver-in-ruby/ Saying that the only difference is misleading, because this is THE best difference :) Jarmo

[wtr-general] Re: rautomation send_keys failing when running on remote machine that is minimized

2013-08-20 Thread Jarmo Pertman
There was a similar issue lately. Read the part at the really end: https://github.com/jarmo/RAutomation/issues/69 Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, August 20, 2013 4:10:32 AM UTC+3, Dan wrote: If it's a javascript popup you don't need

Re: [wtr-general] how to check TextArea is enabled or disabled

2013-06-26 Thread Jarmo Pertman
I'm not sure that there even should be #enabled? method for input elements - there should be `disabled?`. Although maybe creating an `enabled?` is not too bad idea either. Jarmo On Wednesday, June 19, 2013 3:07:26 PM UTC+3, Željko Filipin wrote: On Wed, Jun 19, 2013 at 1:53 PM, Sohail Mirza

Re: [wtr-general] Get PHP Session Variable

2013-06-05 Thread Jarmo Pertman
No, it is not possible unless that variable's value is exposed somehow at the html source. If it would be possible to read values of PHP variables using any tools just like that, then it would not be possible to write secure applications in PHP at all. Jarmo Pertman - IT does really

[wtr-general] Re: Introducing Watirsome

2013-05-19 Thread Jarmo Pertman
suitable for me. On Saturday, May 18, 2013 6:46:25 PM UTC+7, Jarmo Pertman wrote: Hi! If you're looking something really lightweight, then my gem Test::Page is the one you're looking for: https://github.com/jarmo/test-page Jarmo On Friday, May 17, 2013 11:46:18 PM UTC+3, Chuck van der

[wtr-general] Re: Introducing Watirsome

2013-05-18 Thread Jarmo Pertman
Hi! If you're looking something really lightweight, then my gem Test::Page is the one you're looking for: https://github.com/jarmo/test-page Jarmo On Friday, May 17, 2013 11:46:18 PM UTC+3, Chuck van der Linden wrote: On Monday, May 13, 2013 11:36:12 PM UTC-7, Alex Rodionov wrote: Hey

[wtr-general] Re: click_no_wait not working

2013-05-18 Thread Jarmo Pertman
You still have to use #click_no_wait with Watir-Classic to make the alert to appear. Using #click would block indefinitely :( I have written about debugging #click_no_wait problems in the past. It can be slightly out of date, but the big picture should be the same. Read it here:

[wtr-general] Re: Looking for click_no_wait functionality/solution for Browser.alert

2013-05-10 Thread Jarmo Pertman
You could overwrite the alert function in JavaScript before triggering the first alert. Something like this: browser.execute_script window.alert = function() {} Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, May 10, 2013 10:19:39 PM UTC+3, dubsbox wrote

[wtr-general] Re: Browser resize on watir-classic.

2013-03-21 Thread Jarmo Pertman
You may create an issue for watir-classic so these methods would be added at https://github.com/watir/watir-classic/issues?state=open Jarmo On Thursday, March 21, 2013 12:30:32 AM UTC+2, Chuck van der Linden wrote: When I compare the rdocs for the Window class between watir-webdriver and

[wtr-general] Re: Watir-Classic 3.6.0 Released!

2013-03-16 Thread Jarmo Pertman
Just in case - if you see ffi gem problems on Ruby 2.0, then install 1.5.0.pre1 version manually until 1.5.0 has been released: gem install ffi --pre With Best Regards, Jarmo Pertman On Saturday, March 16, 2013 10:29:10 AM UTC+2, Jarmo Pertman wrote: Good news everyone! I'm happy

[wtr-general] Re: Watir does not supply credentials to IE

2013-03-15 Thread Jarmo Pertman
What about running these commands in IRB after you've navigated to your site: browser.exists? browser.title browser.url browser.text_fields.size browser.text_fields.map(:name) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, March 14, 2013 4:00:42 PM UTC+2

Re: [wtr-general] Watir 3X is not running in Virtual Machines

2013-03-06 Thread Jarmo Pertman
Watir does not require to be run with administrative privileges. I'm not sure as to why you think so, Željko. Bibhu, run these scripts directly from the command line itself so you can see any error messages which might appear. Jarmo Pertman - IT does really matter - http

[wtr-general] Re: How to determine selection criteria (e.g. :name) supported by a given element in watir-webdriver?

2013-03-02 Thread Jarmo Pertman
should work. If it does not, then feel free to open up an issue in watir-classic[4] or watir-webdriver[5] repository respectably. Jarmo Pertman - IT does really matter - http://itreallymatters.net [1] http://www.w3.org/TR/html-markup/elements.html [2] http://www.w3.org/TR/html-markup/table.html

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
/json2.js/script /head body foo /body /html Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, February 13, 2013 3:14:42 PM UTC+2, enroxorz wrote: Please make sure to post your findings. I've been monitoring this because I also have the same issue

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, February 13, 2013 10:15:50 PM UTC+2, Jarmo Pertman wrote: I just noticed an error in my previous code. I have an extra ' character at the start of src attribute value :( Please try again with the following

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-13 Thread Jarmo Pertman
:( What about opening the html you created above? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, February 13, 2013 10:56:44 PM UTC+2, captin wrote: I located the registry setting and successfully changed it and verified the setting was enabled. Then I

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-09 Thread Jarmo Pertman
/script /head body foo /body /html Open that file with your internet explorer and try then the JavaScript commands in the developer tools. If they still don't work then it has probably something to do with your IE security settings. Jarmo Pertman - IT does really matter - http

[wtr-general] Re: watir, watir-webdriver, watir-classic: history and current state?

2013-02-07 Thread Jarmo Pertman
By the way, Watir-Classic works quite similarly today when compared to Watir-Webdriver - e.g. handling of popups is the same and you cannot interact with hidden elements. In other words - there should not have many of incompatibilities between the two. Jarmo Pertman - IT does really matter

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-07 Thread Jarmo Pertman
That's sad to hear. What if you run execute_script two times in a row - will you also get an error for the second run? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, February 7, 2013 12:58:36 AM UTC+2, captin wrote: Jarmo, My apologies

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-06 Thread Jarmo Pertman
/master/json2.js and see if that makes any difference? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, February 4, 2013 4:53:52 PM UTC+2, captin wrote: Jarmo, There is no error when I copy the local json2.js file (located at file:///C:/Ruby193/lib/ruby/gems

[wtr-general] Re: watir-classic issue with execute_script and JSON

2013-02-02 Thread Jarmo Pertman
that: JSON.stringify({a: foo}) What about using the code at https://raw.github.com/douglascrockford/JSON-js/master/json2.js ? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, January 31, 2013 1:01:11 AM UTC+2, captin wrote: I have encountered an issue with execute_script

[wtr-general] Re: Watir vs Watir Classic

2013-01-25 Thread Jarmo Pertman
and needs. Jarmo Pertman - IT does really matter - http://itreallymatters.net -- -- 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

[wtr-general] Re: Undefined method 'javascript_dialog' using Watir 4.0.2/Ruby 1.9.3

2013-01-18 Thread Jarmo Pertman
As Dan mentioned - use the JavaScript dialogs API. Use the #alert method (http://rubydoc.info/github/watir/watir-classic/Watir/Container:alert) and then appropriate Alert (http://rubydoc.info/github/watir/watir-classic/Watir/Alert) methods. Jarmo Pertman - IT does really matter - http

[wtr-general] Re: Custom attributes within a table

2013-01-09 Thread Jarmo Pertman
You can also access data attributes directly by converting dashes into underscores: b.tr(:class = pathUserRow).data_path_user_status_id Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, January 8, 2013 8:00:24 PM UTC+2, janjos wrote: you sir are a gentleman

Re: [wtr-general] watir on Windows XP Pro Sp3 doesn't work

2013-01-04 Thread Jarmo Pertman
How come i couldn't reproduce it then? Is there anything in additional which makes that error appear? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, January 3, 2013 11:32:44 PM UTC+2, Daniel Berger wrote: I didn't know this until recently. It seems

Re: [wtr-general] Function '_get_errno' not found in [msvcrt.dll] (FFI::NotFoun dError)

2012-12-24 Thread Jarmo Pertman
1 gem installed Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, December 24, 2012 10:10:36 AM UTC+2, Igor Morozov wrote: I am the beginner in ruby and watir, so I am not sure that I do everything right. I wrote in cmd: gem install win32-process v-0.6.6

Re: [wtr-general] Function '_get_errno' not found in [msvcrt.dll] (FFI::NotFoun dError)

2012-12-23 Thread Jarmo Pertman
Downgrade to win32-process 0.6.6. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, December 21, 2012 11:21:40 AM UTC+2, Željko Filipin wrote: On Fri, Dec 21, 2012 at 9:59 AM, Igor Morozov ivm...@gmail.comjavascript: wrote: What i need to do to solve

Re: [wtr-general] Re: Switching between watir and webdriver

2012-12-07 Thread Jarmo Pertman
reproduce then i'm willing to investigate and fix these :) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, December 6, 2012 4:54:06 PM UTC+2, Oscar.Rieken wrote: What are the actual errors if you are using xpath there could be problems

[wtr-general] Re: Switching between watir and webdriver

2012-12-03 Thread Jarmo Pertman
, if you've been just using plain Watir API then it should work 99% between the two. You can check out some differences and API from watirspec, which they both run against - http://github.com/watir/watirspec Let us know if you have any specific problems or questions. Jarmo Pertman - IT does really

[wtr-general] Re: ScreenCapture

2012-11-24 Thread Jarmo Pertman
Lose the driver part - this makes the code work in both of watir-webdriver and watir-classic. So you would do like this instead: b.save_screenshot(screenshot.png) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, November 23, 2012 9:23:20 PM UTC+2, MEDBEDb wrote

Re: [wtr-general] Can you create an array from the values in a select list?

2012-11-22 Thread Jarmo Pertman
You can also do it like this: b.select_list(:id, 'blah').options.map(:value) Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, November 22, 2012 6:32:24 AM UTC+2, Oscar.Rieken wrote: I have a few questions. Why would you want to collect the values to make

[wtr-general] Re: does watir classic, not webdriver support IE 10 ?

2012-11-17 Thread Jarmo Pertman
I've verified that Watir-Classic works well with IE10 on Win8. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, November 3, 2012 1:57:45 PM UTC+2, Jarmo Pertman wrote: To be honest i haven't tried it, since i don't have any Win 8 boxes. It should work

[wtr-general] Re: Watir-Automation on Windows 7 with IE8

2012-11-16 Thread Jarmo Pertman
Why do you need to run it with administrator? I have also seen that problem in the past and its not how Watir work, but for some strange reason Windows won't list all IE instances when using WIN32OLE. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, November

[wtr-general] Re: [Cucumber] Screenshots with Cucumber/Watir on Windows 7 with IE9

2012-11-15 Thread Jarmo Pertman
variable ie = Watir::Browser.new On Monday, November 12, 2012 4:11:48 AM UTC-8, Jarmo Pertman wrote: Instead of just using ie, use the browser variable name which is used everywhere else in your tests. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Sunday

[wtr-general] Re: [Cucumber] Screenshots with Cucumber/Watir on Windows 7 with IE9

2012-11-12 Thread Jarmo Pertman
Instead of just using ie, use the browser variable name which is used everywhere else in your tests. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Sunday, November 11, 2012 8:04:28 PM UTC+2, Ry wrote: Thank you. 1) I removed the 'include watir line 2) updated

[wtr-general] Re: [Cucumber] Screenshots with Cucumber/Watir on Windows 7 with IE9

2012-11-11 Thread Jarmo Pertman
1) Do not perform include Watir - it is not necessary and will clutter the global objects namespace. 2) Use this code for saving screenshots: ie.save_screenshot screenshot Jarmo Pertman - IT does really matter - http://itreallymatters.net On Sunday, November 11, 2012 1:52:58 AM UTC+2, Ry

[wtr-general] Re: does watir classic, not webdriver support IE 10 ?

2012-11-03 Thread Jarmo Pertman
To be honest i haven't tried it, since i don't have any Win 8 boxes. It should work though. Give it a try an let us know! Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, October 31, 2012 7:01:25 PM UTC+2, bobby sharma wrote: does watir classic support IE

[wtr-general] Re: Flash objects identification in Watir

2012-11-02 Thread Jarmo Pertman
They can't be identified by Watir. Watir can only interact with html elements. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, November 2, 2012 8:15:29 AM UTC+2, Inder Pal wrote: hi all, I am using Watir for automation testing of our website. Recently our

[wtr-general] Re: [Wtr-development] Classic Element.Style vs Webdriver Element.Style

2012-10-27 Thread Jarmo Pertman
It is now implemented in Watir-Classic 3.3.0. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, October 26, 2012 6:34:55 PM UTC+3, alex.ikhelis wrote: Thanks Jarmo, we will raise the request. JFYI both, this is the original discussion around #style() in watir

[wtr-general] Re: Checking if a certain value exists in a dropdown

2012-10-23 Thread Jarmo Pertman
SelectList#include? works only by checking option elements text. So this should work: browser.select.include? Mr I would do like this instead if wanting to make sure if option exists: browser.select.option(:value = 26).exists? Jarmo Pertman - IT does really matter - http

Re: [wtr-general] watir on Windows XP Pro Sp3 doesn't work

2012-10-23 Thread Jarmo Pertman
I'm wondering if the author of win32-process gem is aware of this issue already? If some of you could take some time and create an issue under https://github.com/djberg96/win32-process/issues - that would be awesome :) I'm not on win xp and can't reproduce it. Jarmo Pertman - IT does

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-20 Thread Jarmo Pertman
Awesome, i can reproduce it. Thanks! Will look into it. Jarmo On Friday, October 19, 2012 7:35:29 PM UTC+3, Justin Ko wrote: To reproduce the SystemStackError error, you can use the w3schools page: require 'watir-classic' browser = Watir::Browser.new browser.goto('

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-20 Thread Jarmo Pertman
The problem is fixed with commit https://github.com/watir/watir-classic/commit/22f94a69ac4a09d893c4088f9f526d1698093542 Thank you for your help! Jarmo On Saturday, October 20, 2012 12:29:44 PM UTC+3, Jarmo Pertman wrote: Awesome, i can reproduce it. Thanks! Will look into it. Jarmo

[wtr-general] Re: Having trouble accessing the download bar in IE 9.

2012-10-19 Thread Jarmo Pertman
(not sure about this one) or send some tab and enter keystrokes. In short - really painful thing to do. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, October 18, 2012 8:34:29 AM UTC+3, $uraj wrote: Hi, I am having trouble in accessing the new download bar

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-19 Thread Jarmo Pertman
But this error is not SystemStackError and might be something else. I'll investigate it, but would like to reproduce SystemStackError with minimal code sample. It would be awesome if you could reproduce that error too. Jarmo Pertman - IT does really matter - http://itreallymatters.net

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-18 Thread Jarmo Pertman
SystemStackError: stack level too deep C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-classic-3.2.0/lib/watir-classic/locator.rb:129 === On Wednesday, October 17, 2012 4:04:34 PM UTC-4, Jarmo Pertman wrote: Replace the found like

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-17 Thread Jarmo Pertman
/lib/ruby/gems/1.9.1/gems/watir-classic-3.2.0/lib/watir-classic/locator.rb:129 On Tuesday, October 16, 2012 11:31:49 AM UTC-4, Jarmo Pertman wrote: That's just strange. I don't see any reasons why this code ought to go turn into stack overflow. However if you change the line

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-16 Thread Jarmo Pertman
inputs/comments? On Monday, October 15, 2012 2:29:51 PM UTC-4, Jarmo Pertman wrote: Can you open up the url set in your iframe directly with watir and try that select_list code directly without being in an iframe? Can you try if swapping the order of your select list codes will make any

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-15 Thread Jarmo Pertman
which passes currently? Also, set $DEBUG=true before that failing select list, maybe you will get some other additional information. It is really hard to go from here if there's no additional information as to why it might be happening for you :( Jarmo Pertman - IT does really matter - http

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-14 Thread Jarmo Pertman
And this is the only line in the stacktrace? Strange. But maybe it has something to do with the empy search_filter. Try to put there anything else to see if that makes any difference. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, October 13, 2012 7:59:09

[wtr-general] Re: Unable to select item from selectlist on watir-classic 3.2: SystemStackError: stack level too deep

2012-10-13 Thread Jarmo Pertman
What is the value of search_filter and search_by for example? Also, please share the whole backtrace of that error and not the one line. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Saturday, October 13, 2012 1:13:47 AM UTC+3, Champ wrote: It is a normal

[wtr-general] Re: click_no_wait no worky on Ruby 1.9.3

2012-10-11 Thread Jarmo Pertman
command like this. Instead of: Watir::IE.attach(:hwnd, xx).frame({:tag_name=['frame', 'iframe'], :id='viewIFRAME'}) Like this: Watir::IE.attach(:hwnd, xx).frame({:tag_name= Array.new 'frame' 'iframe', :id='viewIFRAME'}) Jarmo Pertman - IT does really matter - http

[wtr-general] Re: Watir - Problem with pop up in IE9

2012-10-11 Thread Jarmo Pertman
It seems to be some different popup when you read the texts. I'm suspecting that in IE9 this is not a regular JavaScript confirm popup. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, October 11, 2012 5:31:11 AM UTC+3, Paul wrote: https://lh4

[wtr-general] Re: click_no_wait no worky on Ruby 1.9.3

2012-10-10 Thread Jarmo Pertman
Can you try if changing \\ in that #click_no_wait command to / instead will make any difference. I can see this entry in that command: C:\\Users\\pauld\\workspace\\SopranoMedicalRecords\\AutomatedTests\\med_rec\\ Let us know of your results. Jarmo Pertman - IT does really matter - http

[wtr-general] Re: Ruby interpreter (GUI) 1.8.6 [i386-mswin32] has stopped working

2012-10-10 Thread Jarmo Pertman
indexing until you've comfortable to decrement all your indexes by one in scripts. Jarmo Pertman - IT does really matter - http://itreallymatters.net -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http

[wtr-general] Re: click_no_wait no worky on watir-classic 3.2.0

2012-10-08 Thread Jarmo Pertman
What is the exact crash message when you run the command printed out by $DEBUG on your command line? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Monday, October 8, 2012 6:36:41 AM UTC+3, Paul wrote: Ok, does no crash on my VM so its something to do with my PC

[wtr-general] Re: Watir framework using method_missing and ghost methods

2012-10-08 Thread Jarmo Pertman
Hi! Thanks for sharing, maybe someone finds it helpful :) I have a question though - why do you need to climb up in the DOM to get the latest elements? Are you seeing some errors if you don't do that? Is Watir caching too much for you? Jarmo Pertman - IT does really matter - http

[wtr-general] Re: Ruby interpreter (GUI) 1.8.6 [i386-mswin32] has stopped working

2012-10-06 Thread Jarmo Pertman
) win32-file-stat (1.2.7) win32-process (0.6.2, 0.5.3) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.4.0, 0.2.0) windows-pr (1.0.9, 0.7.2) xml-simple (1.0.12) On 5 Ott, 11:17, Jarmo Pertman jarm...@gmail.com wrote: You could try different FFI version or win32-process

[wtr-general] Re: Ruby interpreter (GUI) 1.8.6 [i386-mswin32] has stopped working

2012-10-05 Thread Jarmo Pertman
You could try different FFI version or win32-process versions. Unfortunately there's not much information provided by you to guess anything more. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Thursday, October 4, 2012 12:56:50 PM UTC+3, Ste wrote: Hi, I have

[wtr-general] Re: click_no_wait no worky on watir-classic 3.2.0

2012-10-05 Thread Jarmo Pertman
I can't see Watir 4.0 in your gemlist. Can you show us minimal example of your code, which fails (e.g. require statements, browser initialization)? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, October 5, 2012 12:13:22 AM UTC+3, Paul wrote: Here is my gem

[wtr-general] Re: Check to see if a dropdown list contains a value

2012-10-05 Thread Jarmo Pertman
b.select(:id, title).include?('Mr') should work, but it might not because of this https://github.com/watir/watir-classic/issues/43 Let me know of your results. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, October 5, 2012 11:42:07 AM UTC+3, Adrian Killens

[wtr-general] Re: Get select list text

2012-10-02 Thread Jarmo Pertman
You can do something like this: select_list = b.select_list(:name = 'xxx') select_list.option(:value = select_list.value).text Or a different solution in one line: b.select_list(:name = 'xxx').selected_options[0].text Jarmo Pertman - IT does really matter - http://itreallymatters.net

Re: [wtr-general] Using ternary operator with Watir

2012-10-02 Thread Jarmo Pertman
Or even result.click if result But i would drop the #find call also and use just Watir API: result = @browser.table(:index, 3).link(:text = link_name) result.click if result.exists? Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, October 2, 2012 6:47:30 AM

[wtr-general] Re: Unable to click buttons in the pop-up when the machine is locked

2012-10-02 Thread Jarmo Pertman
You could also try to monkey patch RAutomation as described in this issue: https://github.com/jarmo/RAutomation/issues/28 Maybe it helps, i haven't tried. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Tuesday, October 2, 2012 3:37:11 PM UTC+3, enroxorz wrote: Have

[wtr-general] Re: Watir-Classic does not close Javascript Dialog when button onclick event fired

2012-09-30 Thread Jarmo Pertman
Yes, you should use #click_no_wait together with Watir Alert API ( http://watirwebdriver.com/javascript-dialogs/) In your case: require 'watir-classic' b = Watir::Browser.new b.goto 'file:///c:/test.html' b.button(:value = Press).click_no_wait b.alert.ok Jarmo Pertman - IT does really matter

Re: [wtr-general] watir slow performance on a remote selenium grid2

2012-09-25 Thread Jarmo Pertman
One solution would be to use the alternative method described at http://watirwebdriver.com/javascript-dialogs/ Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, September 21, 2012 11:28:30 AM UTC+3, Željko Filipin wrote: I would suggest that you send

Re: [wtr-general] Would like to use other attribute_value as element identifier...but how?

2012-09-22 Thread Jarmo Pertman
There is also support for html5 data-* attributes: browser.div(:data_id = '32143').click browser.div(:data_column = '2' , :data-row = '6') Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, September 21, 2012 9:16:03 PM UTC+3, Željko Filipin wrote: On Fri, Sep

[wtr-general] Re: Unable to locate element, using {:tag_name=[checkbox]

2012-09-21 Thread Jarmo Pertman
Your if statement is wrong: if cell.hidden(:value, DOE, JOHN) This is always true since it will return a HiddenElement instance. Add #exists? as an additional check like this and see if there's any difference: if cell.hidden(:value, DOE, JOHN).exists? Jarmo Pertman - IT does really matter

Re: [wtr-general] watir on Windows XP Pro Sp3 doesn't work

2012-09-15 Thread Jarmo Pertman
I can see that you've uninstalled win32-process too, but didn't touch ffi gem. If you're using win32-process -v 0.6.6 with watir-classic -v 3.1.0 what happens? What version of ffi are you using? Jarmo On Thursday, September 13, 2012 10:01:24 PM UTC+3, smile-on wrote: I have got exactly same

Re: [wtr-general] watir on Windows XP Pro Sp3 doesn't work

2012-09-15 Thread Jarmo Pertman
Also, what is the error message when you use the following code: browser = Watir::IE.new Jarmo On Saturday, September 15, 2012 9:48:38 PM UTC+3, Jarmo Pertman wrote: I can see that you've uninstalled win32-process too, but didn't touch ffi gem. If you're using win32-process -v 0.6.6

[wtr-general] Re: IE click button issue on watir-webdriver

2012-09-01 Thread Jarmo Pertman
If you're not getting any errors and browser is closed after click then what's the problem? You're saying in your code to explicitly close the browser after click. Or am i misunderstanding anything? Jarmo On Thursday, August 30, 2012 6:21:20 AM UTC+3, Ernesto Cadario wrote: Hello, I have the

Re: [wtr-general] No Assertion and testcase in watir-classic 3.1.0

2012-08-30 Thread Jarmo Pertman
It seems to me that you mean this commit: https://github.com/watir/watir-classic/commit/aed96dc56d2def942142e07323c6f2b65d1e9920 I have to admit that i deleted these file half-accidentally since i thought that they were used by old watir's own unit tests. I have now reviewed contents of both

Re: [wtr-general] Re: Watir on Win7 x64 IE 9 - problems going to Yahoo

2012-08-24 Thread Jarmo Pertman
b.goto facebook.com = 1.739099 Jarmo Pertman - IT does really matter - http://itreallymatters.net On Friday, August 24, 2012 2:10:29 PM UTC+3, Željko Filipin wrote: On Thu, Aug 23, 2012 at 11:22 PM, Chad Larkin chadj...@gmail.comjavascript: wrote: I do not have a Win7 32-bit machine

[wtr-general] Re: Watir on Win7 x64 IE 9 - problems going to Yahoo

2012-08-22 Thread Jarmo Pertman
ideas why you're getting fixnum there. Jarmo Pertman - IT does really matter - http://itreallymatters.net On Wednesday, August 22, 2012 1:48:53 AM UTC+3, Chad Larkin wrote: I'm running into an interesting issue setting up a Watir env on Win7 x64 with IE9. When using the goto statement

  1   2   3   4   >