def add_book():
     driver = DriverFactory.get_driver('Edge')
     driver.get('http://10.1.23.10/bookstore')
     sleep(1)
     home_page = HomePage(driver)
     home_page.click_on_admin_link()
     sleep(1)
     login_page = LoginPage(driver)
     login_page.login('admin', 'admin')
     sleep(1)
     admin_page = AdminPage(driver)
     admin_page.click_on_books_link()
     sleep(1)
     books_page = BooksPage(driver)
     books_page.click_on_add_new()
     sleep(2)
     driver.close()
 def members_insert():
     driver = DriverFactory.get_driver('Edge')
     driver.get('http://10.1.23.10/bookstore')
     sleep(1)
     home_page = HomePage(driver)
     home_page.click_on_admin_link()
     sleep(1)
     login_page = LoginPage(driver)
     login_page.login('admin', 'admin')
     sleep(1)
     admin_page = AdminPage(driver)
     admin_page.click_on_members_link()
     sleep(1)
     members_page = MembersPage(driver)
     members_page.click_on_insert_link()
     sleep(2)
     driver.close()
 def add_member():
     driver = DriverFactory.get_driver('Edge')
     driver.get('http://10.1.23.10/bookstore')
     sleep(1)
     home_page = HomePage(driver)
     home_page.click_on_admin_link()
     sleep(1)
     login_page = LoginPage(driver)
     login_page.login('admin', 'admin')
     sleep(1)
     admin_page = AdminPage(driver)
     admin_page.click_on_members_link()
     sleep(1)
     members_page = MembersPage(driver)
     members_page.click_on_insert_link()
     sleep(1)
     add_member = AddMemberPage(driver)
     add_member.insert_member('admin', 'admin', 'Memeber', 'Ahmed', 'Ali',
                              '*****@*****.**')
     sleep(3)
     driver.close()