Пример #1
0
 def __init__(self, driver):
     self.chrome = driver
     self.driver_func = Driver_Action( driver )
     self.admin_xpath_list_func = Admin_Menu_Path()
     self.basic_func = Basic()
     self.admin_xpath_lists_xpath = self.admin_xpath_list_func.get_admin_menu_xpath()
     self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath()
     self.admin_parts_xpath = self.admin_xpath_list_func.get_admin_parts()
	def __init__(self, driver, target_url):
		self.chrome = driver
		self.target_url = target_url

		self.admin_xpath_list_func = Admin_Menu_Path()
		self.basic_func = Basic()
		self.driver_action_func = Driver_Action( driver )
		self.create_original_form_func = Create_Original_Form( driver )

		# 管理画面のメニューのパスを返す
		self.admin_xpath_lists = self.admin_xpath_list_func.get_admin_menu_xpath()

		# 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
		self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath()
Пример #3
0
    def __init__(self, driver, target_url):
        self.chrome = driver
        self.target_url = target_url

        self.admin_xpath_list_func = Admin_Menu_Path()
        self.basic_func = Basic()
        self.driver_action_func = Driver_Action(driver)
        self.lesson_over_view_posts_func = Lesson_Over_View_Posts(driver)

        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists = self.admin_xpath_list_func.get_admin_menu_xpath(
        )

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath(
        )
Пример #4
0
    def __init__(self, driver, target_url):
        self.chrome = driver
        self.target_url = target_url

        self.admin_xpath_list_func = Admin_Menu_Path()
        self.basic_func = Basic()
        self.driver_action_func = Driver_Action(driver)
        self.user_register_func = User_Register_Setting(driver)

        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists = self.admin_xpath_list_func.get_admin_menu_xpath(
        )

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath(
        )
    def __init__(self, driver):

        self.chrome = driver
        self.driver_func = Driver_Action( driver )
        self.admin_xpath_list_func = Admin_Menu_Path()
        self.basic_func = Basic()
        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists_xpath = self.admin_xpath_list_func.get_admin_menu_xpath()

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath()

        # 管理画面内の項目に関するパス(作成した固定ページリストとか)
        self.admin_parts_xpath = self.admin_xpath_list_func.get_admin_parts()

        self.base_dir = self.basic_func.get_base_dir_path()
    def __init__(self, driver, target_url):
        self.chrome = driver
        self.target_url = target_url

        self.admin_xpath_list_func = Admin_Menu_Path()
        self.basic_func = Basic()
        self.driver_action_func = Driver_Action(driver)
        self.paypal_add_new_func = Pay_Pal_Add_New_One(driver)
        self.paypal_carete_page_func = Pay_Pal_Create_Page(driver)

        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists = self.admin_xpath_list_func.get_admin_menu_xpath(
        )

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath(
        )
    def __init__(self, driver, target_url):
        self.chrome = driver
        self.target_url = target_url

        self.admin_xpath_list_func = Admin_Menu_Path()
        self.basic_func = Basic()
        self.driver_action_func = Driver_Action(driver)
        self.admin_calendar_func = Admin_Calendar(driver)
        self.init_settings_func = Init_Settings(driver)

        self.calendar_title = ''

        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists = self.admin_xpath_list_func.get_admin_menu_xpath(
        )

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath(
        )
Пример #8
0
    def __init__(self, driver):

        self.chrome = driver
        self.driver_func = Driver_Action(driver)
        self.admin_xpath_list_func = Admin_Menu_Path()
        self.lesson_progress_xpath_list_func = Lesson_Progress_Path()
        self.basic_func = Basic()
        # 管理画面のメニューのパスを返す
        self.admin_xpath_lists_xpath = self.admin_xpath_list_func.get_admin_menu_xpath(
        )

        # 管理画面メニュー内の新規追加や編集などのパーツのパスを返す。
        self.admin_list_parts_xpath = self.admin_xpath_list_func.get_admin_menu_list_parts_xpath(
        )

        # 管理画面内の項目に関するパス(作成した固定ページリストとか)
        self.admin_parts_xpath = self.admin_xpath_list_func.get_admin_parts()

        #ユーザー側の画面のメニューとか、動画一覧などのパーツ
        self.public_parts_xpath = self.admin_xpath_list_func.get_public_parts()

        self.base_dir = self.basic_func.get_base_dir_path()

        self.lesson_list_page_url = self.basic_func.get_lesson_list_page()
Пример #9
0
from controllers.MemberRankDetailPostsController import Member_Rank_Detail_Posts_Controller
from controllers.TextDocsController import Text_Docs_Controller
from controllers.AdminRockController import Admin_Rock_Controller
from controllers.AddQuizController import Add_Quiz_Controller
from controllers.NewsController import News_Controller
from controllers.EditUserController import Edit_User_Controller
from controllers.many.lesson.ManyLessonOverViewController import Many_Lesson_Over_View_Controller
from controllers.many.lesson.ManyLessonDetailPostsController import Many_Lesson_Detail_Posts_Controller
from controllers.many.lesson_progress.ManyLessonProgressController import Many_Lesson_Progress_Controller





#xpathで使うものを設定。
admin_xpath = Admin_Menu_Path()
admin_xpath_list = admin_xpath.get_admin_menu_xpath()
admin_parts_xpath_list = admin_xpath.get_admin_parts()
admin_menu_list_parts_xpath = admin_xpath.get_admin_menu_list_parts_xpath()


# 使うドライバーを定義する
chrome = webdriver.Chrome(ChromeDriverManager().install())

#テストする先のURLを設定する
target_url = 'http://localhost:8888/wordpress/wp-selenium/'


# インスタンス作成
driver_action_func = Driver_Action( chrome )
    def __init__(self, driver):

        self.chrome = driver
        self.admin_xpath_list_func = Admin_Menu_Path()