Module: TestCentricity
- Defined in:
- lib/testcentricity_web.rb,
lib/testcentricity_web/environment.rb,
lib/testcentricity_web/excel_helper.rb,
lib/testcentricity_web/browser_helper.rb,
lib/testcentricity_web/webdriver_helper.rb,
lib/testcentricity_web/ui_elements_helper.rb,
lib/testcentricity_web/data_objects_helper.rb,
lib/testcentricity_web/page_objects_helper.rb,
lib/testcentricity_web/page_sections_helper.rb,
lib/testcentricity_web/siebel_open_ui_helper.rb,
lib/testcentricity_web/exception_queue_helper.rb
Defined Under Namespace
Modules: Browsers Classes: DataManager, DataObject, DataSource, Environ, EnvironData, Excel_Data, ExceptionQueue, PageManager, PageObject, PageSection, UIElement, WebDriverConnect
Class Method Summary collapse
Class Method Details
.screen_shot_and_save_page ⇒ Object
33 34 35 36 37 38 39 40 41 |
# File 'lib/testcentricity_web/exception_queue_helper.rb', line 33 def self.screen_shot_and_save_page = Time.now.strftime('%Y%m%d%H%M%S') filename = "Screenshot-#{timestamp}" path = File.join Dir.pwd, "reports/screenshots/", filename save_screenshot "#{path}.png" puts "Screenshot saved at #{path}.png" screen_shot = { :path => path, :filename => filename } Environ.save_screen_shot(screen_shot) end |