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

2010-08-30 Thread Qiannan Zhang
Hello, i used irb session to test my script, the problem also happened, i do not why, and have no idea to fix that, can you give me more help ??? NoMethodError: undefined method `document' for nil:NilClass from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.5/lib/watir/frame.rb:52:in

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

2010-08-27 Thread Željko Filipin
On Fri, Aug 27, 2010 at 3:42 AM, Qiannan Zhang qian...@ecitysky.com wrote: that is my script Well, I said IRB session with the fewest steps that still reproduces the problem, not the entire script. Željko -- Before posting, please read http://watir.com/support. In short: search before you

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

2010-08-27 Thread Qiannan Zhang
I am sorry i do not what is irb session, where can i find it ? 2010/8/27 Željko Filipin zeljko.fili...@wa-research.ch On Fri, Aug 27, 2010 at 3:42 AM, Qiannan Zhang qian...@ecitysky.com wrote: that is my script Well, I said IRB session with the fewest steps that still reproduces the

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

2010-08-27 Thread Željko Filipin
On Fri, Aug 27, 2010 at 10:22 AM, Qiannan Zhang qian...@ecitysky.com wrote: I am sorry i do not what is irb session http://en.wikipedia.org/wiki/Interactive_Ruby_Shell If you have further questions, ask. Željko -- Before posting, please read http://watir.com/support. In short: search before

[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

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 qian...@ecitysky.com 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 -

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

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 qian...@ecitysky.com 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

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 zeljko.fili...@wa-research.ch On Thu, Aug 26, 2010 at 11:34 AM, Qiannan Zhang qian...@ecitysky.com wrote: @fram_cloth=@@ie.frame(:src,

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 qian...@ecitysky.com 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 -- *

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 zeljko.fili...@wa-research.ch On Thu, Aug 26, 2010 at 12:01 PM, Qiannan Zhang qian...@ecitysky.com wrote: I tried to your suggest, but still have that error If you

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

2010-08-26 Thread Željko Filipin
2010/8/26 Qiannan Zhang qian...@ecitysky.com 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

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 qian...@ecitysky.com require 'rubygems' require