...
def login_with (userid,password)
p 'Logging in now ...'
self.password = password
self.userid = userid
self.login
wait.until { html_text = MyBrowser::browser.page_source
html_text.include?("Login Page") == false
}
p 'Creating menu page'
MenuPage.new(browser)
end
I want "wait" the global wait to to available to me that was setup in env.rb or else where ?
Hello All,I am trying to set up a cucumber project using selenium-webdriver and page-object gems in ruby. I want to set up some global objects such as browser instance, browser properties among other things. Does any one know of a way that it can be done (or there are some design patterns) so that my code is DRY. I want these global objects to be available in step definitions and page-objects. Right now I find myself not being able to use them in page-object classes. some of the things that I might need to be available globallybrowser = Selenium::WebDriver.for :firefoxwait = Selenium::WebDriver::Wait.new(:timeout => 15)
Hello All,I am trying to set up a cucumber project using selenium-webdriver and page-object gems in ruby. I want to set up some global objects such as browser instance, browser properties among other things. Does any one know of a way that it can be done (or there are some design patterns) so that my code is DRY. I want these global objects to be available in step definitions and page-objects. Right now I find myself not being able to use them in page-object classes. some of the things that I might need to be available globallybrowser = Selenium::WebDriver.for :firefoxwait = Selenium::WebDriver::Wait.new(:timeout => 15)
-PTeng--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thoughts? TIA
Anthony Green
--
-- Rules --
1) Please prefix the subject with [Ruby], [JVM] or [JS].
2) Please use interleaved answers http://en.wikipedia.org/wiki/Posting_style#Interleaved_style
3) If you have a question, don't reply to an existing message. Start a new topic instead.
You received this message because you are subscribed to the Google Groups Cukes group. To post to this group, send email to cu...@googlegroups.com. To unsubscribe from this group, send email to cukes+un...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/cukes?hl=en
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.