librelist archives

« back to archive

check-Element doesn't work

check-Element doesn't work

From:
Oliver Gaida
Date:
2014-07-08 @ 15:39
if i run:

Shoes.app do
         check(checked: true).click do |c|
                 alert "#{c.checked?}"
         end
end

then i get :

NoMethodError: undefined method `call' for nil:NilClass
                    click at 

/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/check_button.rb:36
                   (root) at 
/data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:2
            instance_eval at org/jruby/RubyBasicObject.java:1533
            execute_block at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:247
            execute_block at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/after_do-0.3.1/lib/after_do.rb:99
   create_execution_block at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:269
                     call at org/jruby/RubyProc.java:271
               eval_block at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:46
                   append at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:55
               eval_block at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:263
                setup_gui at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:144
               initialize at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:58
                      app at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:29
                   (root) at 
/data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:1
                     load at org/jruby/RubyKernel.java:1081
                   (root) at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:1
              execute_app at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:73
                      run at 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:84
                     load at org/jruby/RubyKernel.java:1081
                   (root) at /data/jruby-1.7.13/bin/ruby-shoes:23

-- 
Mit freundlichen Grüßen
Oliver Gaida

T-Systems Solutions for Research GmbH
Internet- and Intranet Appl.
Campus IT
Hausanschrift: Bunsenstrasse 10, 37073 Goettingen
Telefon: (0551) 709 2493
Telefax: (0551) 709 2169
E-Mail:  oliver.gaida@t-systems-sfr.com
Internet: http://www.t-systems-sfr.com
T-Systems Solutions for Research GmbH
Geschäftsführung: Geschäftsführer:  Bernd Flack (Sprecher), Stefan 
Schreiner, Ralf Scholz
Handelsregister: Amtsgericht München, HRB 12 55 01, Sitz der Gesellschaft: Weßling
USt.-IdNr.: DE 193456493
  
Notice: This transmittal and/or attachments may be privileged or 
confidential. If you are not the intended recipient, you are hereby 
notified that you have received this transmittal in error; any review, 
dissemination, or copying is strictly prohibited. If you received this 
transmittal in error, please notify us immediately by reply and 
immediately delete this message and all its attachments. Thank you.

Re: [shoes] check-Element doesn't work

From:
Tobias Pfeiffer
Date:
2014-07-08 @ 17:46
Thank you for reporting this bug. KCErb already transformed it into a 
shoes4 issue: https://github.com/shoes/shoes4/issues/784

Cheers,
Tobi

On Tue 08 Jul 2014 05:39:40 PM CEST, Oliver Gaida wrote:
> if i run:
>
> Shoes.app do
>         check(checked: true).click do |c|
>                 alert "#{c.checked?}"
>         end
> end
>
> then i get :
>
> NoMethodError: undefined method `call' for nil:NilClass
>                    click at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/check_button.rb:36
>                   (root) at
> /data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:2
>            instance_eval at org/jruby/RubyBasicObject.java:1533
>            execute_block at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:247
>            execute_block at
> /data/jruby-1.7.13/lib/ruby/gems/shared/gems/after_do-0.3.1/lib/after_do.rb:99
>   create_execution_block at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:269
>                     call at org/jruby/RubyProc.java:271
>               eval_block at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:46
>                   append at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:55
>               eval_block at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:263
>                setup_gui at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:144
>               initialize at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:58
>                      app at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:29
>                   (root) at
> /data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:1
>                     load at org/jruby/RubyKernel.java:1081
>                   (root) at
> /data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:1
>              execute_app at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:73
>                      run at
> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:84
>                     load at org/jruby/RubyKernel.java:1081
>                   (root) at /data/jruby-1.7.13/bin/ruby-shoes:23
> --
> Mit freundlichen Grüßen
> Oliver Gaida
>
> T-Systems Solutions for Research GmbH
> Internet- and Intranet Appl.
> Campus IT
> Hausanschrift: Bunsenstrasse 10, 37073 Goettingen
> Telefon: (0551) 709 2493
> Telefax: (0551) 709 2169
> E-Mail:  oliver.gaida@t-systems-sfr.com
> Internet: http://www.t-systems-sfr.com
> T-Systems Solutions for Research GmbH
> Geschäftsführung: Geschäftsführer:  Bernd Flack (Sprecher), Stefan 
Schreiner, Ralf Scholz
> Handelsregister: Amtsgericht München, HRB 12 55 01, Sitz der 
Gesellschaft: Weßling
> USt.-IdNr.: DE 193456493
>
> Notice: This transmittal and/or attachments may be privileged or 
confidential. If you are not the intended recipient, you are hereby 
notified that you have received this transmittal in error; any review, 
dissemination, or copying is strictly prohibited. If you received this 
transmittal in error, please notify us immediately by reply and 
immediately delete this message and all its attachments. Thank you.

--
www.pragtob.info

Re: [shoes] check-Element doesn't work

From:
Cecil Coupe
Date:
2014-07-09 @ 02:23
FWIW, I created an issue #264 on Shoes3 (Linux) which has this bug in 
Shoes 3.2 and is very similar to a bug we closed because I couldn't find 
my test code. Thanks Oliver!

On 07/08/2014 11:46 AM, Tobias Pfeiffer wrote:
> Thank you for reporting this bug. KCErb already transformed it into a
> shoes4 issue: https://github.com/shoes/shoes4/issues/784
>
> Cheers,
> Tobi
>
> On Tue 08 Jul 2014 05:39:40 PM CEST, Oliver Gaida wrote:
>> if i run:
>>
>> Shoes.app do
>>          check(checked: true).click do |c|
>>                  alert "#{c.checked?}"
>>          end
>> end
>>
>> then i get :
>>
>> NoMethodError: undefined method `call' for nil:NilClass
>>                     click at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/check_button.rb:36
>>                    (root) at
>> /data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:2
>>             instance_eval at org/jruby/RubyBasicObject.java:1533
>>             execute_block at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:247
>>             execute_block at
>> /data/jruby-1.7.13/lib/ruby/gems/shared/gems/after_do-0.3.1/lib/after_do.rb:99
>>    create_execution_block at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:269
>>                      call at org/jruby/RubyProc.java:271
>>                eval_block at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:46
>>                    append at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/slot.rb:55
>>                eval_block at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:263
>>                 setup_gui at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:144
>>                initialize at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:58
>>                       app at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/app.rb:29
>>                    (root) at
>> /data/workdir/netbeans_projects/ruby_scripts/shoes/check_test.rb:1
>>                      load at org/jruby/RubyKernel.java:1081
>>                    (root) at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:1
>>               execute_app at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:73
>>                       run at
>> 
/data/jruby-1.7.13/lib/ruby/gems/shared/gems/shoes-4.0.0.pre1/lib/shoes/cli.rb:84
>>                      load at org/jruby/RubyKernel.java:1081
>>                    (root) at /data/jruby-1.7.13/bin/ruby-shoes:23
>> --
>> Mit freundlichen Grüßen
>> Oliver Gaida
>>
>> T-Systems Solutions for Research GmbH
>> Internet- and Intranet Appl.
>> Campus IT
>> Hausanschrift: Bunsenstrasse 10, 37073 Goettingen
>> Telefon: (0551) 709 2493
>> Telefax: (0551) 709 2169
>> E-Mail:  oliver.gaida@t-systems-sfr.com
>> Internet: http://www.t-systems-sfr.com
>> T-Systems Solutions for Research GmbH
>> Geschäftsführung: Geschäftsführer:  Bernd Flack (Sprecher), Stefan 
Schreiner, Ralf Scholz
>> Handelsregister: Amtsgericht München, HRB 12 55 01, Sitz der 
Gesellschaft: Weßling
>> USt.-IdNr.: DE 193456493
>>
>> Notice: This transmittal and/or attachments may be privileged or 
confidential. If you are not the intended recipient, you are hereby 
notified that you have received this transmittal in error; any review, 
dissemination, or copying is strictly prohibited. If you received this 
transmittal in error, please notify us immediately by reply and 
immediately delete this message and all its attachments. Thank you.
> --
> www.pragtob.info
>