Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (19 sloc) 1.02 KB
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at
from import By
from pages.base_page import MozTrapBasePage
from pages.regions.filter import Filter
class MozTrapManageProfilesPage(MozTrapBasePage):
_page_title = 'Manage-Environments'
_delete_profile_locator = (By.CSS_SELECTOR, '#manageprofiles .listitem .action-delete[title="delete %(profile_name)s"]')
def filter_form(self):
return Filter(self.base_url, self.selenium)
def go_to_manage_profiles_page(self):
self.selenium.get(self.base_url + '/manage/profiles/')
def delete_profile(self, name='Test Profile'):
_delete_locator = (self._delete_profile_locator[0], self._delete_profile_locator[1] % {'profile_name': name})