def jsxc_add_contact(browser): """Add a contact to JSXC user's roster.""" system.set_domain_name(browser, 'localhost') application.install(browser, 'jsxc') jsxc_login(browser) new = browser.find_by_text('new contact') if new: # roster is empty new.first.click() browser.find_by_id('jsxc_username').fill('alice@localhost') browser.find_by_text('Add').first.click()
def change_domain_name_to(browser, domain): system.set_domain_name(browser, domain)
def set_domain_name(browser, domain): system.set_domain_name(browser, domain)
def change_domain_name_to(session_browser, domain): system.set_domain_name(session_browser, domain)
def set_domain_name(session_browser, domain): system.set_domain_name(session_browser, domain)