@@ -0,0 +1,2076 @@
+from base import WebTest, USER, PASS%0Afrom runner import test_runner%0Afrom selenium.common.exceptions import ElementNotVisibleException%0A%0Aclass SendTest(WebTest):%0A%0A    def __init__(self):%0A        WebTest.__init__(self)%0A        self.login(USER, PASS)%0A        self.wait_with_folder_list()%0A%0A    def load_profile_page(self):%0A        self.by_css('%5Bdata-source=%22.settings%22%5D').click()%0A        list_item = self.by_class('menu_profiles')%0A        list_item.find_element_by_tag_name('a').click()%0A        self.wait_with_folder_list()%0A        assert self.by_class('content_title').text == 'Profiles'%0A%0A    def add_profile(self):%0A        self.by_class('add_profile').click()%0A        name = self.by_name('profile_name')%0A        name.send_keys('Test')%0A        addr = self.by_name('profile_address')%0A        addr.send_keys('test@test.com')%0A        reply = self.by_name('profile_replyto')%0A        reply.send_keys('test@test.com')%0A        sig = self.by_name('profile_sig')%0A        sig.send_keys('foo')%0A        self.by_name('profile_default').click()%0A        self.by_class('submit_profile').click()%0A        self.wait_with_folder_list()%0A        assert 'test@test.com' in self.by_class('profile_details').text%0A        %0A    def edit_profile(self):%0A        table = self.by_class('profile_details')%0A        table.find_element_by_tag_name('a').click()%0A        self.wait_with_folder_list()%0A        name = self.by_name('profile_name')%0A        name.send_keys('New Name')%0A        self.by_class('profile_update').click()%0A        self.wait_with_folder_list()%0A        assert 'New Name' in self.by_class('profile_details').text%0A        %0A    def del_profile(self):%0A        table = self.by_class('profile_details')%0A        table.find_element_by_tag_name('a').click()%0A        self.wait_with_folder_list()%0A        self.by_name('profile_delete').click()%0A        assert 'No Profiles Found' in self.by_class('profile_content').text%0A%0A%0Aif __name__ == '__main__':%0A%0A    print %22PROFIILE TEST%22%0A    test_runner(SendTest, %5B%0A        'load_profile_page',%0A        'add_profile',%0A        'edit_profile',%0A        'del_profile'%0A    %5D)%0A

add profile add/update/delete selenium tests