Hi folks,
I am new to ruby and trying to use it for website testing. For that I
have few gems which i am using. I setup ruby in both eclipse and
netbeans however the problem is, it the function is from some of the gem
intelisense failed to show that.
require 'test/unit'
require 'rubygems'
require 'watir'
class DemoTest < Test::Unit::TestCase
def setup
@browser = Watir::Browser.new
@browser.goto("http://gmail.com")
@browser.maximize
end
on
def test_gmail
#now here if i write @browser.
# it doesn't show me method text_field which is part of watir gem.
end
end
@browser fails to show the method of watir gems, in both neatbean and
eclipse IDE, does anyone have any idea why ???
···
--
Posted via http://www.ruby-forum.com/.
Probably because it would have to execute setup to know what @browser means and you don't do that anywhere. Maybe call it initialize so that it is the ctor and maybe the ide will figure it out.
···
-----Original Message-----
From: Gaurang Shah [mailto:shahgomji@gmail.com]
Sent: Thursday, July 28, 2011 2:15 AM
To: ruby-talk ML
Subject: intelisense is not working properly in eclipse or netbeans
Hi folks,
I am new to ruby and trying to use it for website testing. For that I have few gems which i am using. I setup ruby in both eclipse and netbeans however the problem is, it the function is from some of the gem intelisense failed to show that.
require 'test/unit'
require 'rubygems'
require 'watir'
class DemoTest < Test::Unit::TestCase
def setup
@browser = Watir::Browser.new
@browser.goto("http://gmail.com")
@browser.maximize
end
on
def test_gmail
#now here if i write @browser.
# it doesn't show me method text_field which is part of watir gem.
end
end
@browser fails to show the method of watir gems, in both neatbean and eclipse IDE, does anyone have any idea why ???
--
Posted via http://www.ruby-forum.com/.