Closed jmtabares closed 7 years ago
Can you show me the code for main_page.rb - specifically around line 10?
@cheezy -> Hi Jeff, Any update on this?
Without seeing the code, all I can imagine is to make sure you're passing the watir browser when initializing your page. Or preferably use the built in navigation methods visit
and on
. If these don't address your problem feel free to reopen and provide the code being executed that's failing.
using Ruby 2.0.0 watir 6.2.0 page-object 2.0.0 fig_newton
wrong number of arguments (0 for 1..2) (ArgumentError) /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/page-object-2.0.0/lib/page-object.rb:78:in'
/Users/jair/Dev/qa-automation/agroptima-automation/features/support/pages/main_page.rb:6:in '
initialize' /Users/jair/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/2.0.0/psych/visitors/to_ruby.rb:13:in
initialize' /Users/jair/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/2.0.0/psych/nodes/node.rb:35:innew' /Users/jair/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/2.0.0/psych/nodes/node.rb:35:in
to_ruby' /Users/jair/.rvm/rubies/ruby-2.0.0-p648/lib/ruby/2.0.0/psych.rb:130:inload' /Users/jair/Dev/qa-automation/agroptima-automation/features/support/pages/main_page.rb:10:in
<top (required)>' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:in
load' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/rb_support/rb_language.rb:96:inload_code_file' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:142:in
load_file' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:84:inblock in load_files!' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:in
each' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime/support_code.rb:83:inload_files!' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:253:in
load_step_definitions' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/runtime.rb:61:inrun!' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/lib/cucumber/cli/main.rb:32:in
execute!' /Users/jair/.rvm/gems/ruby-2.0.0-p648/gems/cucumber-2.4.0/bin/cucumber:8:in<top (required)>' /Users/jair/.rvm/gems/ruby-2.0.0-p648/bin/cucumber:23:in
load' /Users/jair/.rvm/gems/ruby-2.0.0-p648/bin/cucumber:23:in<top (required)>' -e:1:in
load' -e:1:in `