Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
Right now i sended a email to you, that is my script, i do not know where are you,but i think you can run my script, but our exterenal is very slow, sometimes the script maybe wrong for other reason. Thank you very much 2010/8/27 Qiannan Zhang > require 'rubygems' > require 'watir' > require 'w

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
require 'rubygems' require 'watir' require 'win32ole' require 'test/unit' require 'jcode' $KCODE='e' require 'watir/cookiemanager' require "watir/watir_simple" require 'fileutils' require 'watir/winClicker.rb' require 'watir/win32ole' require 'Win32API' require 'mysql' class MarketPlace < Test:

Re: [wtr-general] Regression in watir

2010-08-26 Thread Charley Baker
I don't know what you want from your "batch file" or what run your tests in sequence means. Maybe you can back up a bit say what you're trying to do - in detail. Also curious what you got from reading Test::Unit and Rspec, total curiosity. Charley Baker Lead Developer, Watir, http://watir.com 2

[wtr-general] Re: Jssh for Firefox 4.0 beta3

2010-08-26 Thread Super Kevy
OK assuming JSSH getting depreciated. I'll need to review webdriver can you link me to that information. I assume the site will have some simple examples for launching each browser Yes when JSSH fails its kind of a pain or just plain computer magic to get it working again. -- Before posting, p

Re: [wtr-general] scheduling tasks for watir suite

2010-08-26 Thread Felipe Knorr Kuhn
That's a good option as well :) Since you touched that topic, I would also recommend Hudson [1] and the Ruby Plugin [2] which allows you to run ruby code as task. [1] http://www.hudson-ci.org/ [2] http://wiki.hudson-ci.org/display/HUDSON/Ruby+Plugin FK On Thu, Aug 26, 2010 at 4:58 PM, Charley B

[wtr-general] Re: in `gem_original_require': no such file to load -- win32screenshot (MissingSourceFile)

2010-08-26 Thread Jarmo Pertman
Despite of the fact that this is not a Watir's question obviously and you haven't shown us your source, you need to require 'win32/ screenshot' instead of 'win32screenshot'. Jarmo Pertman - IT does really matter - http://www.itreallymatters.net On Aug 26, 11:56 am, Željko Filipin wrote: > O

Re: [wtr-general] JIRA tickets for Watir

2010-08-26 Thread Charley Baker
True, thanks for the link. :) Cheers Charley Baker Lead Developer, Watir, http://watir.com 2010/8/26 Basim Baassiri > If you are creating a ticket, please see > http://wiki.openqa.org/display/WTR/Create+Jira+Ticket > > Basim > > 2010/8/26

Re: [wtr-general] scheduling tasks for watir suite

2010-08-26 Thread Charley Baker
You might want to look into continuous integration, google for that and cc.rb, run your own server, steal an unused box and run it on there :). That's the simple answer. -c On Thu, Aug 26, 2010 at 12:26 PM, nix wrote: > Hello > > I've read many discussions on scheduling a task for watir suite b

Re: [wtr-general] scheduling tasks for watir suite

2010-08-26 Thread Felipe Knorr Kuhn
If you are using Windows, you could use Task Scheduler. If you are using Linux, you could use crontab. If you want to use just Ruby, check http://rufus.rubyforge.org/rufus-scheduler/ out FK On Thu, Aug 26, 2010 at 3:26 PM, nix wrote: > Hello > > I've read many discussions on scheduling a task

Re: [wtr-general] JIRA tickets for Watir

2010-08-26 Thread Basim Baassiri
If you are creating a ticket, please see http://wiki.openqa.org/display/WTR/Create+Jira+Ticket Basim 2010/8/26 Charley Baker > Hi all, > > I'm taking a quick swipe through the JIRA tickets on Watir, Please feel > free to take this time to

[wtr-general] JIRA tickets for Watir

2010-08-26 Thread Charley Baker
Hi all, I'm taking a quick swipe through the JIRA tickets on Watir, Please feel free to take this time to update, add or vote up tickets. This is my first quick pass through a lot of tickets, I'll be refining as I go along. Here's our JIRA instance for bugs and features, please sign up for an ac

Re: [wtr-general] Regression in watir

2010-08-26 Thread amrit kaur
Hi thanks for your responses. I'v read sections Test ::Unit and Rspec and I managed to run my tests in a sequence by creating a test suite. But Iam not able to create a batch file for these suites. Also, I've read all the topics on watir-general but it has not resolved my problem. If any one can g

[wtr-general] scheduling tasks for watir suite

2010-08-26 Thread nix
Hello I've read many discussions on scheduling a task for watir suite but Iam not able to find the exact solution. If any one can help me understanding of how to create a schedule task for my watir suite. Thanks... Nix -- Before posting, please read http://watir.com/support. In short: search be

[wtr-general] Re: More than one condition

2010-08-26 Thread Chuck van der Linden
On Aug 25, 1:44 pm, Shlomit Gazit wrote: > I will give you exact examples: > > I want to click on this html tag: > > class="linkList" onmouseover="TagToTip('ID_SPAN_CONTEXT_NOTE__1', WIDTH, > -240, SHADOW, true, BORDERCOLOR, '#e9e1c5', FONTCOLOR, '#99', BGCOLOR, > '#c0', STICKY, true, FON

[wtr-general] Re: More than one condition

2010-08-26 Thread Chuck van der Linden
That might be a recent change then.. it used to be that if you selected by ID, you got the first thing (maybe even not same element type) that matched the ID..) For a lot of other things, when there's more than one possible choice, don't we get a different error? On Aug 26, 7:58 am, Ethan wrote

Re: [wtr-general] Re: More than one condition

2010-08-26 Thread Ethan
True. In fact I believe watir even has unit tests to make sure it works with multiple identical IDs despite that being quite invalid html. On Thu, Aug 26, 2010 at 04:50, Željko Filipin wrote: > On Wed, Aug 25, 2010 at 7:10 PM, Chuck van der Linden > wrote: > > Watir presumes valid html > > I th

[wtr-general] Re: clicking a certain radio button with a specific value

2010-08-26 Thread lawcab
Thank you everyone. They all helped! Cheers, Law On Aug 26, 1:51 am, Željko Filipin wrote: > On Thu, Aug 26, 2010 at 2:31 AM, orde wrote: > > This page lists the supported attributes for each HTML element: > >http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir > > And there is a

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Željko Filipin
2010/8/26 Qiannan Zhang > can you give me your another email address ? Why? Post you script here. If it can not be public I can not help you. Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are su

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
Yes, i know, i will send my script to you tomorrow, can you give me your another email address ? 2010/8/26 Željko Filipin > On Thu, Aug 26, 2010 at 12:01 PM, Qiannan Zhang > wrote: > > I tried to your suggest, but still have that error > > If you want further help from me, you will have to pa

Re: [wtr-general] Jssh for Firefox 4.0 beta3

2010-08-26 Thread Charley Baker
+1, this is exactly why we ended up getting involved in the webdriver project. It's a chore to compile the extension for all available platforms. In checking the alternatives, some of which Ethan mentioned, webdriver seemed the most reasonable approach. On Thu, Aug 26, 2010 at 6:23 AM, Angrez Sing

[wtr-general] Watir Podcast #36: Jarmo Pertman

2010-08-26 Thread Željko Filipin
http://watirpodcast.com/36-jarmo-pertman/ Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on software testing. all of them vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- Before posting, please read http://watir.com/support. I

Re: [wtr-general] Jssh for Firefox 4.0 beta3

2010-08-26 Thread Angrez Singh
> > > I think it's a good time for jssh to die > +1 I'll try other alternatives. > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > You received this message because you are subscribed to > http://groups.google.com/group/watir-general > T

Re: [wtr-general] Re: PopUp

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 12:45 PM, sivam wrote: > Give me some code samples to solve this problem. I have never worked with pop ups. > I have tried most of > the things. But nothing is working fine for me. "Not working" does not tell my anything. You will have to provide your code and error mess

[wtr-general] Re: PopUp

2010-08-26 Thread sivam
Give me some code samples to solve this problem. I have tried most of the things. But nothing is working fine for me. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.

Re: [wtr-general] PopUp

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 12:29 PM, sivam wrote: > I am getting problem while handling security alert. Is there any way > to handle this pop ups using ruby watir. Yes: http://wiki.openqa.org/display/WTR/Pop+Ups Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - a

[wtr-general] PopUp

2010-08-26 Thread sivam
I am getting problem while handling security alert. Is there any way to handle this pop ups using ruby watir. -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/grou

Re: [wtr-general] Re: Recent Stack Overflow Questions Tagged Watir

2010-08-26 Thread Željko Filipin
I am glad to see new questions posted to Stack Overflow almost every day: http://stackoverflow.com/questions/3573272/undefined-method-document-for-nilnilclass http://stackoverflow.com/questions/3570359/automating-a-form-post-in-firefox Željko -- Before posting, please read http://watir.com/supp

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 12:01 PM, Qiannan Zhang wrote: > I tried to your suggest, but still have that error If you want further help from me, you will have to paste IRB* session with the fewest steps that still reproduces the problem. Željko -- * http://en.wikipedia.org/wiki/Interactive_Ruby_Sh

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
I tried to your suggest, but still have that error It is very sad, 2010/8/26 Željko Filipin > On Thu, Aug 26, 2010 at 11:34 AM, Qiannan Zhang > wrote: > > @fram_cloth=@@ie.frame(:src," > http://web1.beijing.ecitysky.com/yii/market/market/ClothesIndex > ").html.body > > @font_messa...@

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 11:34 AM, Qiannan Zhang wrote: > @fram_cloth=@@ie.frame(:src," http://web1.beijing.ecitysky.com/yii/market/market/ClothesIndex";).html.body > @font_messa...@fram_cloth.div(:class,"shop_title\sw500").text > puts @font_message Try this: puts @@ie.frame(:src," ht

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
@fram_cloth=@@ie.frame(:src," http://web1.beijing.ecitysky.com/yii/market/market/ClothesIndex";).html.body @font_messa...@fram_cloth.div(:class,"shop_title\sw500").text puts @font_message 1) Error: test_clothshop(MarketPlace): NoMethodError: undefined method `document' for nil:NilC

Re: [wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 9:21 AM, Qiannan Zhang wrote: > Does anyone know how to resolve the problem "undefined method `document' for nil:NilClass" Please provide the code that causes the error. Željko -- watir.com - community manager watirpodcast.com - host testingpodcast.com - audio podcasts on

Re: [wtr-general] in `gem_original_require': no such file to load -- win32screenshot (MissingSourceFile)

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 7:50 AM, Rajiv Nanduani < rajivkumarnandv...@gmail.com> wrote: > i try to install the oci8 by using this steps but it did not work Again, how is this related to Watir? If this is general Ruby question, you will get better replies at a Ruby list/forum/group. I do not know

Re: [wtr-general] watir which version of ruby is the best one

2010-08-26 Thread Željko Filipin
2010/8/26 Rajiv Nanduani > but with this version( Ruby 1.8.6-26) gem install libxml gives error. And I am supposed to guess the error message? :) Please provide it. Also, you should update rubygems with gem update --system Željko -- Before posting, please read http://watir.com/support. In sh

Re: [wtr-general] Re: clicking a certain radio button with a specific value

2010-08-26 Thread Željko Filipin
On Thu, Aug 26, 2010 at 2:31 AM, orde wrote: > This page lists the supported attributes for each HTML element: > http://wiki.openqa.org/display/WTR/HTML+Elements+Supported+by+Watir And there is also a page on radio buttons: http://wiki.openqa.org/display/WTR/Radio+Buttons Željko -- watir.com -

Re: [wtr-general] Re: More than one condition

2010-08-26 Thread Željko Filipin
On Wed, Aug 25, 2010 at 7:10 PM, Chuck van der Linden wrote: > Watir presumes valid html I think this is not true. Watir does not care if HTML is valid or not. It will just pick the first element that has the attribute you have provided. Željko -- Before posting, please read http://watir.com/s

Re: [wtr-general] Jssh for Firefox 4.0 beta3

2010-08-26 Thread Željko Filipin
2010/8/25 Ethan > I think it's a good time for jssh to die +1 Željko -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: watir-general

[wtr-general] undefined method `document' for nil:NilClass

2010-08-26 Thread Qiannan Zhang
Does anyone know how to resolve the problem "undefined method `document' for nil:NilClass", why does this error occur ? and what does that mean ? Now, i want to test website which include many iframe, and i did something to resolve "access denied" problem, then "undefined method `document' for nil