from Base.Base import Base
from Page.pageElements import PageElements


class SettingPage(Base):

    def __init__(self, driver):
        Base.__init__(self, driver)

    def logout(self, tag=1):
        """
        退出
        :param tag: 1:退出 0:取消
        :return:
        """
        # 向上滑动页面
        self.swipe_screen()

        # 点击退出
        self.click_element(PageElements.setting_logout_btn_id)

        if tag:
            # 退出
            self.click_element(PageElements.setting_logout_acc_btn_id)
        else:
            # 取消
            self.click_element(PageElements.setting_logout_dis_btn_id)


9263213587c47d6b04f5efacc44c1ea2362e9d34
<mask token>


class SettingPage(Base):
    <mask token>
    <mask token>

<mask token>


class SettingPage(Base):
    <mask token>

    def logout(self, tag=1):
        """
        退出
        :param tag: 1:退出 0:取消
        :return:
        """
        self.swipe_screen()
        self.click_element(PageElements.setting_logout_btn_id)
        if tag:
            self.click_element(PageElements.setting_logout_acc_btn_id)
        else:
            self.click_element(PageElements.setting_logout_dis_btn_id)

<mask token>


class SettingPage(Base):

    def __init__(self, driver):
        Base.__init__(self, driver)

    def logout(self, tag=1):
        """
        退出
        :param tag: 1:退出 0:取消
        :return:
        """
        self.swipe_screen()
        self.click_element(PageElements.setting_logout_btn_id)
        if tag:
            self.click_element(PageElements.setting_logout_acc_btn_id)
        else:
            self.click_element(PageElements.setting_logout_dis_btn_id)

from Base.Base import Base
from Page.pageElements import PageElements


class SettingPage(Base):

    def __init__(self, driver):
        Base.__init__(self, driver)

    def logout(self, tag=1):
        """
        退出
        :param tag: 1:退出 0:取消
        :return:
        """
        self.swipe_screen()
        self.click_element(PageElements.setting_logout_btn_id)
        if tag:
            self.click_element(PageElements.setting_logout_acc_btn_id)
        else:
            self.click_element(PageElements.setting_logout_dis_btn_id)

from Base.Base import Base
from Page.pageElements import PageElements


class SettingPage(Base):

    def __init__(self, driver):
        Base.__init__(self, driver)

    def logout(self, tag=1):
        """
        退出
        :param tag: 1:退出 0:取消
        :return:
        """
        # 向上滑动页面
        self.swipe_screen()

        # 点击退出
        self.click_element(PageElements.setting_logout_btn_id)

        if tag:
            # 退出
            self.click_element(PageElements.setting_logout_acc_btn_id)
        else:
            # 取消
            self.click_element(PageElements.setting_logout_dis_btn_id)

