New answers tagged

0

It's hard to understand without a code to see what's wrong. You can create your browser object outside of each class file, like in your test.rb file. Then you can have an initialize on each page class where you pass browser object class LoginPage def initialize(browser) @browser = browser end end class LogOut def initialize(browser) @browser = ...


0

Once you have your browser object initiated, you can use those settings. According to the docs https://www.rubydoc.info/gems/selenium-webdriver/Selenium/WebDriver/Timeouts Set the amount of time the driver should wait when searching for elements. Sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. Sets ...


Top 50 recent answers are included