Summary Table
| Categories |
Total Count |
| PII |
0 |
| URL |
0 |
| DNS |
0 |
| EKL |
0 |
| IP |
0 |
| PORT |
0 |
| VsID |
0 |
| CF |
0 |
| AI |
0 |
| VPD |
0 |
| PL |
0 |
| Other |
0 |
File Content
require 'base'
require 'watir-webdriver'
require 'page-object'
class Landing < Base
include PageObject
def initialize(driver)
@driver = driver
super(driver)
end
expected_title "VA Tool Set"
#Unauthenticated landing page
button(:login, :css => '.login')
#pre-authorized landing page
div(:welcome_message, :css=>'.institution-page-wrapper.manage-settings-content.ng-scope')
#authorized landing page
div(:new_welcome_message, :css=>'.home-page')
#unauthorized landing page
div(:unauthorized_welcome_message, :css=> '.welcome')
#footerUserInfo
element(:footerUserInfo, :span, :css=>'.ng-scope span.ng-scope')
#view settings button
button(:view_settings, :id=>'open-settings-btn')
#Select a Facility location drop down
select_list(:facility_location, :id=>'institutionsChoiceForm-select')
elements(:facilities, :css=>'#institutionsChoiceForm-select option')
def selectFacilityLocation(facility)
wait_until{ !view_settings_element.attribute('disabled') }
view_settings_element.when_visible(TIME_OUT_LIMIT)
options = self.facilities_elements
selectOption(options, facility)
end
def clickViewSettings
view_settings_element.wait_until_present(TIME_OUT_LIMIT)
view_settings
end
end