[wtr-general] Re: How to handle popup confirm window in Ubuntu firefox3.0 with Firewatir-1.6.2

2009-04-09 Thread Angrez Singh
Hi, Thanks for the code. I checked it here with the same configuration i.e. same text it works. Can you try just clicking the ok button like this: ff.startClicker(ok) - Angrez ff.startClicker(ok,1,'',The configuration on this page will resetall the active connections, are you sure to submit?)

[wtr-general] Re: Error in handling popup

2009-04-09 Thread kiran yajamanyam
Now I got the problem you are facing. I think in your code u would have used click() method just before the code to handle popup. If this is the case , script would not be coming out of click() method and go to next step. This happens in a case when when used click method and if a popup appears

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread George
What about this neat little script? ie = Watir::IE.attach(/Watir General/) ie.text_field(:name, q).set popups ie.button(:name, qt_g).click Seriously, though...part of the learning process is doing the research. You can't expect that an entirely new set of Watir users are going to magically

[wtr-general] Re: How to handle popup confirm window in Ubuntu firefox3.0 with Firewatir-1.6.2

2009-04-09 Thread ajee
Hey Angrez, I tried, unfortunately, still failed. I wonder if we are using different system, as titled, I am in Ubuntu, with FF3, jssh0.9. Is any suggestion for me? or can you tell the internals between firewatir and jssh and how to debug, since I can build jssh plugin from source code, so I can

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread spike
I'm really sorry, i've tried many things in the code but couldn get a solution from past 3 days. I've stuck in handling this popups. so please dont mind, i apologise for it. On Apr 9, 11:14 am, George george.sand...@gmail.com wrote: What about this neat little script? ie =

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread kiran yajamanyam
opps forgot to attach file :( On Thu, Apr 9, 2009 at 12:18 PM, spike vinaykumarl...@gmail.com wrote: I'm really sorry, i've tried many things in the code but couldn get a solution from past 3 days. I've stuck in handling this popups. so please dont mind, i apologise for it. On Apr 9, 11:14

[wtr-general] Count Open Browsers

2009-04-09 Thread Isabel
Hi, Could anyone pleae let me know a way to count the number of browsers that are open on my system at run time?? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group,

[wtr-general] Re: Count Open Browsers

2009-04-09 Thread Isabel
how do we use process_count() work?? On Apr 9, 12:11 pm, Isabel joybe...@gmail.com wrote: Hi, Could anyone pleae let me know a way to count the number of browsers that are open on my system at run time?? Thanks. --~--~-~--~~~---~--~~ You received this message

[wtr-general] Re: How to handle popup confirm window in Ubuntu firefox3.0 with Firewatir-1.6.2

2009-04-09 Thread Angrez Singh
I tested it on windows with FF3 not sure about ubuntu. You can use some puts statements in firewatir class i mean you can go through the startclicker method and see where it fails? - Angrez 2009/4/9 ajee ajee@gmail.com Hey Angrez, I tried, unfortunately, still failed. I wonder if we are

[wtr-general] Re: Count Open Browsers

2009-04-09 Thread mandeep baruah
require 'watir/process' count_open_browser = Watir::IE.process_count On Thu, Apr 9, 2009 at 12:53 PM, Isabel joybe...@gmail.com wrote: how do we use process_count() work?? On Apr 9, 12:11 pm, Isabel joybe...@gmail.com wrote: Hi, Could anyone pleae let me know a way to count the number of

[wtr-general] Re: Tooltip text with overlib

2009-04-09 Thread Trevor
Additional HTML below: tr tdWhat is the name of this configuration?/td td width=25 align=center img src=../images/help.gif onmouseover=return overlib ('The unique name of this configuration.') onmouseout=return nd();/ /td tdinput type=text name=name value=

[wtr-general] Re: Error in handling popup

2009-04-09 Thread spike
sorry to tel u it isnt working, ie.button(:id, ctl00_ContentPlaceHolder1_btnNext).click ie.file_field(:id, ctl00_ContentPlaceHolder1_Uploadfile).set(D:\ \BCSBI.zip) ie.file_field(:id, ctl00_ContentPlaceHolder1_btnUpload).click #this is the button when clicked popup appears. # For handling popups

[wtr-general] Re: Problem with watir (Radio Button)

2009-04-09 Thread Željko Filipin
Off topic, but I just love it when I can reply with just a link. :) Željko On Mon, Apr 6, 2009 at 08:17, Chuck van der Linden sqa...@gmail.com wrote: http://wiki.openqa.org/display/WTR/Frames --~--~-~--~~~---~--~~ You received this message because you are

[wtr-general] WATiR DSL I have been using

2009-04-09 Thread Ruf, Wadud
Hi Over the last few months I have been using WATiR to test a web application we have been developing. As a noob to both Ruby and WATiR (myself and the rest of the project team), I have to say we have found WATiR to have a very shallow learning curve. To aide non-developers, and to increase

[wtr-general] trying to access text_field, but getting link instead?!?

2009-04-09 Thread Jarmo Pertman
Hi. I stumbled into one interesting problem, which haven't happened before. I tried to access text_field with id, and got link object instead. Here is my commands and output: $browser.text_field(:id, info).value = test unknown property or method: `value' HRESULT error code:0x80020006

[wtr-general] IE crashes at end of test

2009-04-09 Thread andrew . dahl
Wondering if anyone ran into this and solved it. Had a machine which has been running my tests fine for months. It was updated and rebooted and now IE crashes about 50% of the time when closing the browser at the end of a test. Prevents other tests from starting. Windows XP IE 7.0.5730.13 Watir

[wtr-general] Re: Error in handling popup

2009-04-09 Thread Jim Matthews
spike, There is a problem with the new version of Ruby that may be contributing to your problem. I don't use autoit, I use method that Lisa described. For more information on the problem, see:

[wtr-general] Re: FireWatir 1.6.2 unittests don't run

2009-04-09 Thread Moochie
Paul, Did you ever update the wiki? I'm not finding you direction sto get passed this issue, and since I'm hitting the issue, and believe others will. It would be nice to help other so the will not get a frustrated. Many thanks, Darin On Apr 7, 12:14 am, Paul Carvalho tester.p...@gmail.com

[wtr-general] Re: WATiR DSL I have been using

2009-04-09 Thread Bret Pettichord
Thanks for sharing your work. I found it to be very interesting. Bret Ruf, Wadud wrote: Hi Over the last few months I have been using WATiR to test a web application we have been developing. As a noob to both Ruby and WATiR (myself and the rest of the project team), I have to say we

[wtr-general] Re: trying to access text_field, but getting link instead?!?

2009-04-09 Thread Bret Pettichord
That's actually a bug I've known about in Watir, but i think this is the first time some one has reported it. It was introduced when we did some performance optimizations some time ago. Bret Jarmo Pertman wrote: Hi. I stumbled into one interesting problem, which haven't happened before. I

[wtr-general] Re: trying to access text_field, but getting link instead?!?

2009-04-09 Thread Chuck van der Linden
I think you are calling the wrong method for what it looks like you are trying to do. .value returns the current value in the text field.. to set the text field to a particular string you want .set current_text = browser.text_field(:id, info).value #get the text field contents puts

[wtr-general] Re: WATiR DSL I have been using

2009-04-09 Thread Ruf, Wadud
Thanks Brett, Looking at the video again it is quite dated, I need to get some up to date material on there. The main principle is simplicity over power. Once I have better material to upload I will post a link. Wadud From: watir-general@googlegroups.com on

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread ANu Gangavaram
I was running into similar problem. I seperated the scripts - main script and save script. I call the save script from the main script using a system call and send the filename as an argument and it works. You can also have it in the same file, but seperate the code and instantiate each

[wtr-general] Re: Handling popups

2009-04-09 Thread ANu Gangavaram
Can you please give more details on what you were trying to do? On Wed, Apr 8, 2009 at 1:58 AM, spike vinaykumarl...@gmail.com wrote: Hi I'm tried to run Popups_test.rb script but its not working im getting the following error

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread Chuck van der Linden
In the future please stick with the thread you started for the issue, it's best for everyone to have one thread per issue, which hopefully ends with a solution to the problem. Abandoning one thread and starting another just because you didn't like the answers makes things more confused for

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread Chuck van der Linden
I many cases, the most important thing to understand when dealing with popups is to know what KIND of popup you are seeing. The tutorial for Watir covers most of the common kinds of popups, and gives some suggestions of potential ways to deal with each of them. Even if you've been through it

[wtr-general] Yahoo mail, creating a new email message.

2009-04-09 Thread cboudreau
Has anyone been able to create a new yahoo email in the new UI? Carl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Watir General group. To post to this group, send email to watir-general@googlegroups.com Before

[wtr-general] Re: Handling popups using watir

2009-04-09 Thread Chuck van der Linden
On Apr 8, 10:35 pm, George george.sand...@gmail.com wrote: Didn't you just make a thread about this? Actually I count 4. maybe more I might have missed a few. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Chuck van der Linden
sounds like a yahoo question. what does this have to do with Watir? On Apr 9, 11:05 am, cboudreau carlboudreau...@gmail.com wrote: Has anyone been able to create a new yahoo email in the new UI? Carl --~--~-~--~~~---~--~~ You received this message because you

[wtr-general] Re: IE crashes at end of test

2009-04-09 Thread Chuck van der Linden
if this is easily reproducable, especially if it's running on a VM (which makes it easy to share the repro case) it might be something you need to take up with MS.. You might want to do some simple resource monitoring, make sure it's not a memory leak or something.. Like run permon on another

[wtr-general] Re: Error in handling popup

2009-04-09 Thread Chuck van der Linden
I many cases, the most important thing to understand when dealing with popups is to know what KIND of popup you are seeing. The tutorial for Watir covers most of the common kinds of popups, and gives some suggestions of potential ways to deal with each of them. Even if you've been through it

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread cboudreau
I am new to this Watir, and having some difficulty figuring this out. I thought I would be starting something easy, by logging into Yahoo and then creating a new email. However I can not get the Xpath line to work. #Include the FireWatir file. require 'firewatir' #include the FireWatir

[wtr-general] Re: Error in handling popup

2009-04-09 Thread Anu Gangavaram
Since you are able to run the script, after clicking on the button manually, it could be a timing issue. you might want to check that as well. On Thu, Apr 9, 2009 at 2:26 PM, Chuck van der Linden sqa...@gmail.comwrote: I many cases, the most important thing to understand when dealing with

[wtr-general] Re: Go on performance test using script.

2009-04-09 Thread Chuck van der Linden
There's been a few threads on this here in just the last week. I'd start by searching them. Briefly (and this is just my opinion) 1) I think watir has a lot of potential for use in basic performance tests because it's very easy to get the response time for each page in the test. 2) tools like

[wtr-general] Re: Popup for File downlaods

2009-04-09 Thread Chuck van der Linden
You now have at least FOUR threads going for the same issue, it's just causing confusion. Please STOP spawning new threads for the same issue. On Apr 7, 8:39 pm, spike vinaykumarl...@gmail.com wrote: Hi I'm really confused working with Pop Up's i'm not able to find any solution for it wat

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Michael Hwee
Check that it could be in a frame. - Original Message From: cboudreau carlboudreau...@gmail.com To: Watir General watir-general@googlegroups.com Sent: Thursday, April 9, 2009 11:32:56 AM Subject: [wtr-general] Re: Yahoo mail, creating a new email message. I am new to this Watir, and

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Al Snow
Carl, This works for me (after you put your login and password ;). require 'firewatir' include FireWatir ff=Firefox.new ff.goto(http://mail.yahoo.com;) ff.text_field( :name,login ).set(PUT LOGIN HERE ) ff.text_field( :name,passwd ).set(PUT PASSWORD HERE ) ff.button(:value, Sign In).click

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread cboudreau
Hi Al, your sample didn't work. I uncommented the #ff.cell(:xpath, //td[contains( text, 'New')]/).click I can log in with firewatir, but not get firewatir to click new to open the email editor in Yahoo. On Apr 9, 1:55 pm, Al Snow jas...@hotmail.com wrote: Carl, This works for me

[wtr-general] Re: Handling popups

2009-04-09 Thread George
Wow On Apr 7, 10:58 pm, spike vinaykumarl...@gmail.com wrote: Hi I'm tried to run Popups_test.rb script but its not working im getting the following error C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- unittests/setup

[wtr-general] Re: WATiR DSL I have been using

2009-04-09 Thread Charley Baker
It does look really interesting, particularly the manual intervention, we have something similar, not intervention per se, but specifying manual tests with ruby, not Quality Center. There seems to be a proliferation of frameworks popping up around Watir lately which is a good thing. If you're

[wtr-general] Re: Posting invalid form data with Watir

2009-04-09 Thread Chuck van der Linden
not sure there is an easy way around this with Watir itself, since it's designed to drive the browser like a user would. Seems like for this kind of spoofing, where you are sending something that the browser won't normally allow, there are a couple of options. you already talked about using

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Chuck van der Linden
1) have you worked through the watir tutorial? that might be a good place to start. 2) have you looked at the object in question with something like firebug or IE developer toolbar to see if it's still part of a table, and not changed to perhaps just be in a div or perhaps a frame instead?

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread George
Hi there, Using the IE Developer Toolbar, I'm finding that there is an attribute associated with the New link called 'unselectable' which is set to on. This *may* mean that a script can't automatically select this control. Just a guess, though. -George On Apr 9, 11:05 am, cboudreau

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread orde
Take a look at http://wiki.openqa.org/display/WTR/XPath. Based on the examples on that page, the following line: @browser.cell(:xpath, //td[contains( text, 'New')]/).click should be something like @browser.cell(:xpath, //t...@id='compose_button_label']/../).click Hope that helps. orde On

[wtr-general] Super-special Guest Star on Watir Podcast

2009-04-09 Thread Tiffany Fodor
The next Watir Podcast will have an extra-special guest - Zeljko Filipin himself! I'm going to fill in as the host and I need lots of great questions for Z*. Please add any questions you have here. -Tiffany --~--~-~--~~~---~--~~ You received this message because

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread cboudreau
Well, I am sorry to report it is still failing. However I sure do appreciate the help with this. I was tring to cut my teeth on this before I start the real project of automating a PayPay functions. But, I am just not getting it. Maybe I will try my luck on the PayPal project. Has anyone

[wtr-general] Test with the same GIVEN

2009-04-09 Thread keith shaw
I have recently started to use watircraft to organize my test cases. I really like the benefits watircraft provides when trying to manage and scale a large number of test. The problem I am having is I have two test each with the same GIVEN in the feature. This was never a problem in the past

[wtr-general] Re: Super-special Guest Star on Watir Podcast

2009-04-09 Thread Chuck van der Linden
sent you a few via the irc let me know if you didn't get them for some reason. On Apr 9, 2:32 pm, Tiffany Fodor tcfo...@comcast.net wrote: The next Watir Podcast will have an extra-special guest - Zeljko Filipin himself! I'm going to fill in as the host and I need lots of great questions

[wtr-general] Re: Test with the same GIVEN

2009-04-09 Thread Chuck van der Linden
If the code inside the steps is not the same, and you can't figure out a way to make it universal, then rename one or both of the steps (and alter the features that call it) e.g. if the code is page specific, then maybe Given On the xxx page I am on the properties tab or something of that

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread Chuck van der Linden
is the login page set to remember you? or is there a recent session or cookie hanging around? I don't think it's ACTUALLY logging you in, I think the browser is just coming up that way. did you try executing these steps one by one in an IRB session? The error you are getting would indicate it

[wtr-general] Live ONLINE Watir Training

2009-04-09 Thread Pete Dignan
Good news - the Intro to Watir class will be taught live online for the first time April 27-28-29-30, 2009. The class will run from 10am to 1pm Central Daylight Time (US) those four consecutive days. Same content as our classroom training, covering Watir and the WatirCraft framework. Only SIX

[wtr-general] How to Input Content to FCK textarea

2009-04-09 Thread LichengCai
I am a new user of watir,When I write testcases For a CMS system. I have read http://groups.google.com/group/watir-general/browse_thread/thread/5852900e02fea4fa, So I wrote code like this: ie.frame(ifrmContent).frame(:index, 3).frame(:id, WebEditorTextarea___Frame).frame(:id,

[wtr-general] Re: Yahoo mail, creating a new email message.

2009-04-09 Thread cboudreau
Thanks for your presistance on this, Line 11 is the login line, I have set Firefox to clear all personal data when exiting, and now I am seeing acurate error message related to the actual error lines. The next set of error messages is where I started with line 17 uncommented our, then I start