Re: [wtr-general] Re: Firewatir cannot find an element on the page

2010-02-05 Thread Angrez Singh
Is it something that we can see online? I mean is there a website on which you are testing? On Fri, Feb 5, 2010 at 3:30 AM, QAguy qablogm...@gmail.com wrote: The first on didn't work. I tried the second one you provided: browser.div(:for, folder_name).text_field(:id,folder_name).set(Watir

Re: [wtr-general] row_count usage

2010-02-05 Thread Angrez Singh
row_count() is a method that you can use on Table object and not on Firefox object. So correct usage is : $browser.table(id:, 'table id').row_count() On Fri, Feb 5, 2010 at 7:17 AM, Naga ravikus...@gmail.com wrote: Hello, I get the following error when trying to get the row count in a

Re: [wtr-general] How to find class property of an object in FireWatir?

2010-02-05 Thread Frank Harper
I think you might be looking for .class_name. Frank Betsy wrote: Hi, How to find class property of an object in FireWatir? Tried using .invoke but returns nothing. Also tried using .to_s on the object itself but it does not return class property. Please suggest a way to fetch the class

[wtr-general] Broken web pages

2010-02-05 Thread Frank Harper
Google has a bunch of links to the different Watir websites, but currently some of them seem to be broken. For example a Google search just sent me to http://wtr.rubyforge.org/rdoc/classes/Watir/Element.html, and the reply was 404 Not Found The requested URL /rdoc/classes/Watir/Element.html

[wtr-general] Selecting rows belonging to a certain HTML class

2010-02-05 Thread Frank Harper
>From my understanding, if I want to process the subset of table rows belonging to a certain HTML class, I have to loop over all the rows using something like: $ie.table(:id, 'suite_list').rows.each do |row| if row.class_name.eql?('subset1') ... end end But I would like to write

Re: [wtr-general] Killing a process

2010-02-05 Thread pallavi shashidhar
You are getting this error since you are trying to kill a thread which has not started. Try checking the path where clicker.rb is. The clicker.rb should be in the same place as the testcase. On Fri, Feb 5, 2010 at 3:28 AM, Shlomit Gazit shlomitpatr...@gmail.comwrote: For handling popups I am

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

2010-02-05 Thread ashwin mahesh
This is the HTML code of a chart. I need to access the src=/bf/Charts/ Pie2D.swf present in the last line of the following HTML code, for verification. Any help in this regard would be appreciated. div id=countryGraphDisplay__1 class=itemContent embed width=100%25 height=300

[wtr-general] Re: How to find class property of an object in FireWatir?

2010-02-05 Thread Betsy
Thanks a lot Frank.. .class_name was the method I was looking for... On Feb 5, 1:16 pm, Frank Harper fhar...@greenliff.com wrote: I think you might be looking for .class_name. Frank Betsy wrote: Hi, How to find class property of an object in FireWatir? Tried using .invoke but

Re: [wtr-general] Handle Failures in Watir

2010-02-05 Thread Željko Filipin
On Thu, Feb 4, 2010 at 5:55 PM, tester86 sagar.am...@gmail.com wrote: Is there a way that when this occurs it can log that failure and continue running the tests and not stop. Yes. It is called test framework. I would suggest rspec: http://wiki.openqa.org/display/WTR/RSpec http://rspec.info/

Re: [wtr-general] Broken web pages

2010-02-05 Thread Željko Filipin
On Fri, Feb 5, 2010 at 9:19 AM, Frank Harper fhar...@greenliff.com wrote: Google has a bunch of links to the different Watir websites, but currently some of them seem to be broken. Please let us know what is broken. For example a Google search just sent me to

Re: [wtr-general] Selecting rows belonging to a certain HTML class

2010-02-05 Thread Željko Filipin
On Fri, Feb 5, 2010 at 9:29 AM, Frank Harper fhar...@greenliff.com wrote: $ie.table(:id, 'suite_list').rows(:class, 'subset1').each do |row| I think rows does not take arguments and always returns all rows of the table. Check in source. More generally I'm wondering why doesn't Watir

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

2010-02-05 Thread Željko Filipin
On Fri, Feb 5, 2010 at 10:47 AM, ashwin mahesh smashwi...@gmail.com wrote: I need to access the src=/bf/Charts/ Pie2D.swf present in the last line of the following HTML code, for verification. What do you mean by access? Do you need to click it, play flash file, just check if it is in the

Re: [wtr-general] Re: how to run watirscript in background

2010-02-05 Thread venkat
Thanks for all your answers. Actually my intention was to run my scripts for concurrent browsers. I thought if I run the scripts visible:false or (0), which was not the solution. Anyways, I can see my scripts pass but failed at the IE.attach function. I can see my scripts passed if it is a single

[wtr-general] Re: Watir ads at stackoverflow.com

2010-02-05 Thread Željko Filipin
Want to see Watir ads on stackoverflow.com? This answer needs five upvotes. Current status: 0/5. http://bit.ly/djPPfj Željko -- 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

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-05 Thread Felipe Knorr Kuhn
Vote up requires 15 reputation :( On Fri, Feb 5, 2010 at 10:13 AM, Željko Filipin zeljko.fili...@wa-research.ch wrote: Want to see Watir ads on stackoverflow.com? This answer needs five upvotes. Current status: 0/5. http://bit.ly/djPPfj Željko -- You received this message because you

Re: [wtr-general] Re: Watir ads at stackoverflow.com

2010-02-05 Thread Željko Filipin
On Fri, Feb 5, 2010 at 1:45 PM, Felipe Knorr Kuhn fkn...@gmail.com wrote: Vote up requires 15 reputation :( You will get 100 reputation if you connect your meta.stackoverflow.comaccount to stackoverflow.com, serverfault.com or superuser.com account. I think if you now open stackoverflow.com

[wtr-general] Re: how to run watirscript in background

2010-02-05 Thread venkat
Added more info. for better understanding my problem... again ran the script, following are the errors: 1) Error: testMasters_All(TestSuite): WIN32OLERuntimeError: OLE error code:0 in Unknown No Description HRESULT error code:0x80070005 Access is denied.

[wtr-general] Re: How Ruby Interacts with Powerpoint

2010-02-05 Thread David Mullet
Here's a very brief example, where doc is your document: ppMouseClick = 1 ppActionHyperlink = 7 slide1 = doc.slides(1) textbox = slide1.shapes(3) link = textbox.ActionSettings(ppMouseClick) link.Action = ppActionHyperlink link.Hyperlink.Address = http://www.microsoft.com; I hope that helps.

[wtr-general] Re: Firewatir cannot find an element on the page

2010-02-05 Thread QAguy
Yes. www.motionbox.com Modals are on the folder pages. On Feb 5, 3:08 am, Angrez Singh ang...@gmail.com wrote: Is it something that we can see online? I mean is there a website on which you are testing? On Fri, Feb 5, 2010 at 3:30 AM, QAguy qablogm...@gmail.com wrote: The first on didn't

[wtr-general] Safaiwatir clearing browser cookies and cache

2010-02-05 Thread QAguy
Is there a function/command in safariwatir I can use to clear out the browsers cookies/cache prior to a test running? Couldn't find anything when I searched the google group or the wiki. Thank you -- You received this message because you are subscribed to the Google Groups Watir General group.

[wtr-general] Re: how to run watirscript in background

2010-02-05 Thread orde
Sorry that didn't work for you. Then again, I'm guess I'm not clear regarding what you're trying to accomplish, either. These pages contain info on the Thread class: http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_threads.html http://ruby-doc.org/core/classes/Thread.html On Feb 5, 5:33 

[wtr-general] click_no_wait fails when multiple tabs are open in IE7

2010-02-05 Thread Alan Baird
Yeah...I know, you all probably are rolling your eyes already about another click_no_wait problem, but this isn't a problem, it's a statement. I don't know how to fix it but my co-worker James and I just spent a while trying to figure out why click_no_wait wasn't working in his script. To

[wtr-general] fix funky command line behavior in watir-console

2010-02-05 Thread Alan Baird
Here is another cool trick I learned today. I remember how cool it was when I found out about watir-console. You know, that tiny program that's in the /watir/bin folder that automagically requires watir for you when you want to perform some cool irb-style command line stuff with watir?

[wtr-general] Re: Safaiwatir clearing browser cookies and cache

2010-02-05 Thread AR
It's not part of SafariWatir, but rather the fileutils library. You're manually deleting the information in the directory where cookies are stored. Safari may store them in another location, but the principle is the same: require 'fileutils' $cookieDir = C:\\Documents and

[wtr-general] Re: fix funky command line behavior in watir-console

2010-02-05 Thread AR
Thanks for this! I've run into that same issue with irb from time to time, but just chalked it up to dealing with it. I use irb a lot for step by step development or concept testing before I invest in an organized and commented script. I'm not sure how you're using the #{libs} variable, so I

[wtr-general] Re: Safaiwatir clearing browser cookies and cache

2010-02-05 Thread QAguy
Thank you. :) On Feb 5, 2:58 pm, AR reed.a...@gmail.com wrote: It's not part of SafariWatir, but rather the fileutils library. You're manually deleting the information in the directory where cookies are stored.  Safari may store them in another location, but the principle is the same:

Re: [wtr-general] row_count usage

2010-02-05 Thread Nagaanjani Kusuma Vellanki
Thank u On Fri, Feb 5, 2010 at 12:10 AM, Angrez Singh ang...@gmail.com wrote: row_count() is a method that you can use on Table object and not on Firefox object. So correct usage is : $browser.table(id:, 'table id').row_count() On Fri, Feb 5, 2010 at 7:17 AM, Naga ravikus...@gmail.com

[wtr-general] A printable Watir Tutorial

2010-02-05 Thread Alister Scott
I've been thinking for sometime to create a single (long) page Watir Tutorial by merging multiple tutorial pages into one.The aim would be to make it easier for a new Watir user to follow, and the added benefit is it could be printed. The process of creating this is a little daunting. As a

[wtr-general] Re: A printable Watir Tutorial

2010-02-05 Thread Darryl (gem dandy) Brown
I think that this is a good idea. My thoughts are along the lines of the online Pickaxe = http://www.ruby-doc.org/docs/ProgrammingRuby/ I'm not sure of the effort required to get there but I'm willing to help. At minimum it would be good to have an index. Darryl Central Ohio On Feb 5, 7:49 

[wtr-general] Re: Is there a version of jssh.xpi for FF3.6 for snow leopard

2010-02-05 Thread parkurm
Having the same problem. On Jan 28, 6:10 pm, QAguy qablogm...@gmail.com wrote: Was able to fix this by first doing: sudo port install libffi Once that was installed I was able to do: gem install  selenium-webdriver gem install watir-webdriver --pre However when I try to run my scripts I

[wtr-general] Re: Problem starting watir in Ubuntu, Firefox 3, Ruby 1.8.7

2010-02-05 Thread parkurm
Thanks. The problem was not in jssh, but in that I didn't enable firefox popup window. After following all steps in the tutorial, I was able to launch watir without problem. What does your recommended gem function here? Is it able to avoid poping up firefox window? I tried to use your

Re: [wtr-general] Re: Firewatir cannot find an element on the page

2010-02-05 Thread Yuping Zhong
Hi, Can you give more info that how to go to the folder page? Right now,I don't know how to flow to that page. Thanks! -Zhong On Fri, Feb 5, 2010 at 11:35 PM, QAguy qablogm...@gmail.com wrote: Yes. www.motionbox.com Modals are on the folder pages. On Feb 5, 3:08 am, Angrez Singh

[wtr-general] Questiona about Watir in Mac with Firefox 3.6

2010-02-05 Thread msiles
Hi all, I'm new using watir. I was checking this link http://wiki.openqa.org/display/WTR/FireWatir+Installation?focusedCommentId=40861698#comment-40861698 and I saw that watir doesn't work with Firefox 3.6, could you guys tell me if that is right or watir should work with Firefox 3.6 If this is

[wtr-general] Re: Questiona about Watir in Mac with Firefox 3.6

2010-02-05 Thread Alister Scott
Hi, You can use Firefox 3.5 until someone compiles the JSSH add-on for OSX. Alternatively you can take a look at SafariWatir: http://github.com/redsquirrel/safariwatir Cheers, Alister Scott -- You received this message because you are subscribed to the Google Groups Watir General group. To