From the code you have provided, you don't need the class PageObjects
(If you have more code, please post them all at once). So you might simply try this:
require 'selenium-webdriver'
# require 'page-object' # You are not using page-object either.
def startup
@browser = Selenium::WebDriver.for :firefox
@browser.manage.window.maximize
end
startup
However, if you want to use this class, you need to call this instance method setup
outside your class after initializing the class. Like this:
class PageObjects
require 'selenium-webdriver'
require 'page-object'
def startup
@browser = Selenium::WebDriver.for :firefox
@browser.manage.window.maximize
end
end
PageObjects.new.startup