[wtr-general] Re: Unable to acces frame by name ok on a PC but ok on an other PC with same script...pb with XP SP3 ????

2009-11-29 Thread jw
You probably have tried this, but just in case... you get access refused when you do ie.frame(:index,1).text_field(:index,1).flash but what if you just do ie.frame(:index,1).exists? On Nov 28, 1:34 pm, "pierrelebai...@gmail.com" wrote: > I have a script that goes perfectly on my notebook, wi

[wtr-general] using rspec -b (backtrace) option makes watir run in an invisible window

2009-12-02 Thread jw
Is this intended behavior? The window is invisible, when I look in Process explorer and try to bring IE's window to front it says no visible window found. Oddly, the window becomes visible when calling enabled_popup. This is about 20 seconds into the test, so it's not window lag and the test is u

[wtr-general] Re: using rspec -b (backtrace) option makes watir run in an invisible window

2009-12-02 Thread jw
sorry: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] watir (1.6.2) On Dec 2, 11:52 am, jw wrote: > Is this intended behavior?  The window is invisible, when I look in > Process explorer and try to bring IE's window to front it says no > visible window found. > Oddly, t

[wtr-general] Re: How to easily get button index?

2009-12-10 Thread jw
when poking around at the page, trying to find attributes of UI elements, it's incredibly useful to open your webpage, start irb, get a new Watir::IE using attach, then just play around with puts $ie.buttons[1] puts $ie.links[12] etc On Dec 9, 8:20 pm, Marlon wrote: > Hi, > > How can I easy get b

[wtr-general] Re: Support Sheriff

2009-12-12 Thread jw
Thanks to all of you who give your time to make the community strong and help it grow by helping us newbies! -josh On Dec 10, 6:02 pm, Tiffany Fodor wrote: > Thanks to Željko and the rest of the Watir team for your confidence in > me.  I'm honored to be counted among such a great group of people

[wtr-general] Re: Watir - Going down a to read the next element and perform click action on a button

2010-01-13 Thread jw
so it is working (clicking an element) just not the right one? If the page is static you could try using the index of the element ie.link(:index, 2) but this is usually not the best way, especially if your elements have ids On Jan 12, 9:27 am, tester86 wrote: > HI > > With the app there is an id

[wtr-general] Re: Please donate to the Watir project!

2010-01-13 Thread jw
I encourage you to mention donations monthly. I will be donating soon and only realized it was an option because of this post. I don't know if you or Tiffany will profit from it but you definitely should! : ) On Jan 12, 6:43 am, Željko Filipin wrote: > Thanks Alan and Marek for the donations. >

[wtr-general] Re: No Matching Window Exception.

2010-01-13 Thread jw
it may be the difference between "http://www.google.com"; and "http://www.google.com/"; if you're typing it by hand each time it's easy to miss that "/" On Jan 13, 5:47 am, Chandu80 wrote: > Hi, > When I type in the lines of code as you mentioned,I am able to see the > correct url. > Today I eve

[wtr-general] Re: Not able to edit Text Field

2010-01-13 Thread jw
> even I am able to get the text > ie.table(:id, "ivr_template:params").div(:index,1).text = lokesh or > ie.table(:id, "ivr_template:params")[2][2].text > when you do this ie.table(:id, "ivr_template:params").div(:index,1).text it's just resolving to a string. you have to get hold of the text_

[wtr-general] Re: Verify table sort order

2010-01-13 Thread jw
elsif(is_time = self.parseTime(last_value)) should probably be elsif(is_time == self.parseTime(last_value)) break the problem up, write more helper methods, it's too big to debug On Jan 12, 3:24 am, Hamid wrote: > I wonder if anyone can help me to change the cod so it will also sort > a empty

[wtr-general] Re: waitr - problem with autoit WinActivate - fails at random

2010-01-13 Thread jw
Did you try all the solutions on http://wiki.openqa.org/display/WTR/JavaScript+Pop+Ups solution #3 (after some customization) works for me very consistently. On Jan 11, 7:29 pm, Alpinweis wrote: > I am using the following code taken from Watir Wiki on JS Popups: > >     def check_for_popups(tit

[wtr-general] Re: Xpath cell

2010-01-28 Thread jw
I think xpath is generally considered a last resort by most people. To me it seems very brittle. If the layout of your page changes a lot of your code will break. Using IDs to locate elements is usually your best choice I believe. On Jan 27, 12:07 pm, Bharath wrote: > Željko, > Thank you very

[wtr-general] WatirGrid (distributed watir) anyone?

2010-02-04 Thread jw
It seems clear (due to the existence of seleniumGrid) that there's a need for a standard client/server architecture to cut down on test runtime, but I never heard about anyone discussing this. WatirGrid has existed for several months and seems to address this pretty well. It's not fully fleshed ou

[wtr-general] Re: Help required to access src element in the following code.

2010-02-09 Thread jw
ok i get it. it's an embed element as opposed to a button or link, etc. if you have an IE object you can use the "html" method to get the html text. not great but might do the trick On Feb 9, 6:11 am, ashwin mahesh wrote: > There is a chart which shows data in four formats namely 2D pie chart,

[wtr-general] Re: Help with Modal Dialog boxes !!!!

2010-02-09 Thread jw
By "having the access right" do you mean access as in "permissions" or just you're not accessing it correctly? I have been using enabled_popup and WinClicker to interact with javascript modal dialogs with decent success. The button I had to click was labelled "Open" but the button name I had to pa

[wtr-general] Re: Drop down menu

2010-03-18 Thread jw
you may have to fire more than one mouse event. i once had to fire an onmousedown, wait 1 sec, then fire onclick (or something like that, i don't quite remember). try doing it interactively with irb instead of writing the test and running over and over. playing with it interactively sometimes ma

[wtr-general] Re: Drop down menu

2010-03-19 Thread jw
so if you have ahold of the SelectList object using $b.select_list(:index, 2), can you make if flash? if so, can you view the values using $b.select_list(:index, 2).options The Watir API says options is a method but in my installation it doesn't seem to be implemented. Here is the code from the

[wtr-general] Re: HP acquires the Watir project, announces Wativ

2010-04-01 Thread jw
good one Alister! I usually get taken on this day but everybody at my office said to expect pranks : ) On Apr 1, 5:23 am, "Don Taylor" wrote: > it would be a pity if all this turned out to be the work of a juvenile few > who treat Watir as their plaything. > > just glad I've found TestWise d

[wtr-general] Re: Watir-Webdriver IE issue (UnexpectedJavascriptError: Unable to find element with xpath)

2011-09-15 Thread jw
Try (as debugging, not as solution) putting a sleep right before the select. Will let you know if it's a timing issue or an actual 'not found' issue. You may have to introduce waiting. This is an area that concerns me : ( -- Before posting, please read http://watir.com/support. In short: se

[wtr-general] watir-webdriver and ie9 - downloading a file stops processing

2011-09-15 Thread jw
n ie9 mode, UNLESS the developer toolbar is open or has been opened/closed in the ie9 session previous to the download. Very strange. The script times out and the whole ruby process (using Test::Unit) bombs out (instead of Test::Unit catching the timeout, which is unfortunate): C:/Users/jw

[wtr-general] Re: watir-webdriver and ie9 - downloading a file stops processing

2011-09-15 Thread jw
I guess my temporary hack is to very briefly: #HACK for ie9: open and close dev toolbar real quick if ($envHash[:browserFlavor]['ie9']) send_keys(:f12) sleep 0.1 send_keys(:f12) end -- Before posting, please read http://watir.com/support. In short: search before yo

[wtr-general] Re: undefined method click_no_wait

2011-09-15 Thread jw
I get the feeling that click_no_wait doesn't exist because it should not be needed (that the stall should never happen?). I have not tried your scenario, but I am having a similar issue downloading a file in IE9. I've got a hack workaround, but it may be worth trying in your scenario: https:/

[wtr-general] Re: Watir-Webdriver IE issue (UnexpectedJavascriptError: Unable to find element with xpath)

2011-09-16 Thread jw
x27;s there. On Sep 16, 1:19 pm, Mike wrote: > hey jw, > I am running this in irb... sleep/wait shouldn't be an issue there, right? -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google

[wtr-general] firefox (on windows) DL path in browser prefs has issues

2011-09-16 Thread jw
ruby 187 selenium-webdriver (2.6.0) watir (2.0.1) watir-webdriver (0.3.3) It looks like FF (3.6.6) has some issues with the DL path setting: browserProfile['browser.download.dir'] = "C:\my\new\dir" 1) it seems the string you pass must use backslashes and must contain the drive letter 2) this exa

[wtr-general] Re: firefox (on windows) DL path in browser prefs has issues

2011-09-21 Thread jw
You're an OSX user, true? So this is happening there as well? On Sep 17, 5:34 am, Alister Scott wrote: > Thanks SO much for this. > I was experiencing this EXACT same problem yesterday and it was driving me > nuts! > With this patch, will it also work with a newer version of Firefox? -- Before

[wtr-general] Re: firefox (on windows) DL path in browser prefs has issues

2011-09-21 Thread jw
Successfully tested the above patch on FF6.0.2 on XP. I saw the 'double escaping' patch you/he recommended in your change request but I'm sticking to this for the time being... works on my machines :) On Sep 21, 11:54 am, jw wrote: > You're an OSX user, true? So this is

[wtr-general] Re: undefined method click_no_wait

2011-09-23 Thread jw
That's probably what I would do as well. As a sidenote, if this is happening on IE, that doesn't mean it will happen in FF. I just had a popup in FF and (very surprisingly) it seemed the test was still setting text_fields and clicking buttons in the browser while the popup was sitting on top of t

[wtr-general] watir-webdriver timing out, ending run of Suite (Test::Unit) instead of simply causing test failure

2011-09-26 Thread jw
ruby 1.8.7 (352) test-unit (2.3.0) watir (2.0.1) watir-webdriver (0.3.3) IE9/probably others I don't know if other people have seen this, but I'm occasionally getting stacks that look like: C:/Users/jw/.pik/rubies/Ruby-187-p352/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill': ex

[wtr-general] Re: Watir-Webdriver IE issue (UnexpectedJavascriptError: Unable to find element with xpath)

2011-09-26 Thread jw
e.rb:356:in > > `find_element_by' > >         from C:/Ruby187/lib/ruby/gems/1.8/gems/selenium- > > webdriver-2.5.0/lib/selenium/webdriver/common/search_context.rb:41:in > > `find_element' > >         from C:/Ruby187/lib/ruby/gems/1.8/gems/watir-webdriver-0.3.3

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

2011-09-27 Thread jw
I have recently switched from a very successful (albeit IE 6-8 only) Watir suite to watir-webdriver (WW). It has been very painful and disillusioning but i'm getting close to back where I was 3 weeks ago. Of course my reason was to be able to test all the browsers under (almost) the same code wit

[wtr-general] auto-save of pdf and other "dangerous file types" with Chrome?

2011-09-27 Thread jw
I just looked all over the nets and was unable to find a way to disable the "This type of file can harm your computer..." message I get when I try to DL certain file types including .pdf (major part of our business). Here are my specs: Google Chrome 14.0.835.186 (101821) ruby 1.8.7 selenium-web

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

2011-09-30 Thread jw
/WebDriver.Timeouts.html On Sep 27, 6:09 pm, jw wrote: > I have recently switched from a very successful (albeit IE 6-8 only) > Watir suite to watir-webdriver (WW).  It has been very painful and > disillusioning but i'm getting close to back where I was 3 weeks > ago. > > Of course my r

[wtr-general] waiting using implicit_wait with watir-webdriver

2011-10-04 Thread jw
After searching for a long time, Alister Scott finally clued me in that watir-webdriver does in fact include a method that I thought was only available in selenium (or selenium webdriver). Instead of doing a wait_until_present and then doing a click, you can just (globally) do a myBrowser.driver.

[wtr-general] Re: Watir 3.0.rc1 Released

2012-01-13 Thread jw
So to be clear, the change to (for example) Button#text would not affect a script that uses watir-webdriver, correct? Is there any noticeable change to watir-webdriver users? Thanks for keeping people writing automation at their job instead of testing manually! On Jan 13, 1:32 am, Jarmo wrote:

[wtr-general] tightness of coupling between watir and watir-webdriver?

2012-01-13 Thread jw
This question was spawned when Jarmo recently announced watir 3.0. I was trying to figure out if the changes he listed would affect my watir-webdriver scripts, and after looking at some code I'm guessing not. When I've installed watir-webdriver it seems watir is a prereq. But I noticed that (for

[wtr-general] Re: tightness of coupling between watir and watir-webdriver?

2012-01-16 Thread jw
Thanks Chuck. What you said is not surprising after reading the code. What is surprising is that WW implements the whole Watir API (with some differences as we've all seen). I think WW gem requires common-watir and I thought Watir, but if you say it does not then I'm sure you're right. I thoug

[wtr-general] Re: tightness of coupling between watir and watir-webdriver?

2012-01-17 Thread jw
Ah, I read it too fast. Thanks Zeljko. On Jan 17, 3:54 am, Željko Filipin wrote: > On Mon, Jan 16, 2012 at 6:19 PM, jw wrote: > > Zeljko, thanks for taking the time to organize the information around > > Watir.  I saw one bullet that I have a question about, which was > >

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

2013-01-30 Thread jw
Hey gang, I developed a very robust framework for a company in 2009-2011 using watir and converted to watir-webdriver in late 2011- early 2012. During the conversion I had to make many horrible compromises (inserting retry statements, wait statements, etc.), and watir-webdriver still gave false