acceptance/ui/features/pages/service.rb
# Removes the public endpoint (vhost or port) by looking up the entry and
# clicking the delete button.
Removes the public endpoint (vhost or port) by looking up the entry and
clicking the delete button.
Removes the public endpoint ( vhost or port ) by looking up the entry and clicking the delete button .
def remove_publicendpoint?(name)
        name = getTableValue(name)
        self.page.all(:xpath, "//table[@data-config='publicEndpointsTable']//tr").each do |tr|
            if tr.text.include?(name)
                btn = tr.find(:xpath, ".//button[@ng-click='clickRemovePublicEndpoint(publicEndpoint)']")
                if btn
                    btn.click
                    cnf = find(:xpath, "//div[@class='modal-content']//button", :text => "Remove")
                    cnf.click
                    refreshPage()
                    return true
                end
            end
        end
        return false
    end
def remove_publicendpoint? ( name ) name = getTableValue ( name ) self . page . all ( :xpath , "//table[@data-config='publicEndpointsTable']//tr" ) . each do | tr | if tr . text . include? ( name ) btn = tr . find ( :xpath , ".//button[@ng-click='clickRemovePublicEndpoint(publicEndpoint)']" ) if btn btn . click cnf = find ( :xpath , "//div[@class='modal-content']//button" , :text => "Remove" ) cnf . click refreshPage ( ) return true end end end return false end
Removes the public endpoint (vhost or port) by looking up the entry and
clicking the delete button.
Removes the public endpoint ( vhost or port ) by looking up the entry and clicking the delete button .
# confirm the removal
name