-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathpools.rb
20 lines (17 loc) · 864 Bytes
/
pools.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
require_relative 'navbar'
require 'site_prism'
class Pools < SitePrism::Page
set_url applicationURL("#/pools?disable-animation=true&loglevel=debug")
set_url_matcher /pools/
section :navbar, NavBarSection, ".navbar-collapse"
element :addPool_button, ".add-pool-button"
element :poolName_input, "input[name='new_pool_name']"
element :description_input, "input[name='new_pool_description']"
element :addVirtualIp_button, "[ng-click='modalAddVirtualIp(currentPool)']"
element :ip_input, "input[name='ip']"
element :netmask_input, "input[name='netmask']"
element :interface_input, "input[name='interface']"
element :dialogAddVirtualIp_button, "button[class='btn btn-primary submit']"
element :virtualIps_table, "table[data-config='virtualIPsTable']"
elements :pool_names, "td[data-title-text='Resource Pool']"
end