Ejemplo n.º 1
0
class Register(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.register = RegisterPage(self.driver)
        self.homepage = HomePage(self.driver)
        self.dashboard = DashboardPage(self.driver)

    def test_register(self):
        self.driver.get('http://stage.edx.org/')
        self.assertTrue(self.homepage.is_browser_on_the_page())
        self.homepage.click_register()
        self.assertTrue(self.register.is_browser_on_the_page())
        self.register.fill_form()
        self.register.submit_form()
        self.assertTrue(self.dashboard.is_browser_on_the_page())

    def tearDown(self):
        self.driver.close()
Ejemplo n.º 2
0
class EdxRegister(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.register = RegisterPage(self.driver)
        self.dashboard = Dashboard(self.driver)
        self.select = SelectPage(self.driver)

    def test_register(self):
        self.driver.get('https://courses.edx.org/register')

        self.register.fill_form('*****@*****.**', 'Test 131', 'Tan3211t',
                                'Tk123@arbisoft')

        self.select.select_country()

        self.register.create_account()

        self.dashboard.go_to_course_page()

    def tearDown(self):
        self.driver.close()