Ejemplo n.º 1
0
class Everyday(BasePage):
    # 导入fusion.yaml文件中Everyday
    config_dict_everyday = YamlHelper().get_config_dict(
        '/fusion/fusion.yaml')['Everyday']

    def personalcenter(self):
        # 每日签到
        self.base_driver.click(self.config_dict_everyday['EVERY'])

    def percenter_login(self, perclogin):
        # 立即签到
        self.base_driver.click(self.config_dict_everyday['NOW'])
        # 第一天
        self.base_driver.click(self.config_dict_everyday['ONE'])
        # 第二天
        self.base_driver.click(self.config_dict_everyday['TWO'])
        # 第三天
        self.base_driver.click(self.config_dict_everyday['THREE'])
        # 第四天
        self.base_driver.click(self.config_dict_everyday['FORTH'])
        # 第五天
        self.base_driver.click(self.config_dict_everyday['FIVE'])
        # 第六天
        self.base_driver.click(self.config_dict_everyday['SIX'])
        # 第七天
        self.base_driver.click(self.config_dict_everyday['SEVERN'])
        # 第八天
        self.base_driver.click(self.config_dict_everyday['EIGHT'])

    def get_tips(self):
        # 今日已签到
        tips = self.base_driver.get_text(self.config_dict_everyday['TODAY'])
        self.base_driver.forced_wait(1)
        return tips
Ejemplo n.º 2
0
class Lottery(BasePage):
    # 充值公共页面
    # 导入fusion文件中CommonRecharge
    config_dict_lottery = YamlHelper().get_config_dict(
        '/fusion/yaml/lottery_marksix.yaml')['Lottery']

    def login(self):
        # 登陆
        self.base_driver.type(self.config_dict_lottery['USERNAME'],
                              'lee123456789')
        self.base_driver.type(self.config_dict_lottery['PASSWORD'], 'lee123')
        self.base_driver.type(self.config_dict_lottery['YZM'], '1')
        self.base_driver.click(self.config_dict_lottery['LOGINBUTTON'])
        self.base_driver.forced_wait(3)
        # 点击数字彩
        self.base_driver.click(self.config_dict_lottery['LOTTERY'])
        self.base_driver.forced_wait(3)
        self.base_driver.switch_to_window_by_index(2)

    def marksix(self):
        # 选择六合彩
        self.base_driver.click(self.config_dict_lottery['MARKSIX'])
        # 选择分分六合彩
        self.base_driver.click(self.config_dict_lottery['MARKSIX_MIN'])

        self.base_driver.forced_wait(3)
Ejemplo n.º 3
0
class FundPassword(BasePage):
    # 导入fusion文件中FundPassword
    config_dict_fundpassword = YamlHelper().get_config_dict('/fusion/yaml/fusion.yaml')['FundPassword']

    def fundpassword(self, row):
        # 资金密码
        # 密码规则:6位纯数字
        # 请输入新资金密码
        print('进入资金密码填写')
        print(row['tips'])
        self.base_driver.type(self.config_dict_fundpassword['NOWFUND'], row['nowfund'])
        self.base_driver.type(self.config_dict_fundpassword['NEWFUND'], row['newfund'])
        # 请再次输入新资金密码
        self.base_driver.type(self.config_dict_fundpassword['AGENTFUND'], row['agentfund'])
        print('请输入新资金密码:' + row['nowfund'])
        print('请输入新资金密码:' + row['newfund'])
        print('请再次输入新资金密码:' + row['agentfund'])

    def sub_button(self):
        # 确认按钮
        sub = self.base_driver.click(self.config_dict_fundpassword['SUMBITFUND'])
        return sub

    def get_tips(self):
        # 获取提示
        tps0 = self.base_driver.get_text(self.config_dict_fundpassword['ALLTIPS'])
        print('获取的提示' + tps0)
        return tps0

    def get_lp_tips0(self):

        # 新资金密码不能为空
        tps0 = self.base_driver.get_text(self.config_dict_fundpassword['NEWNULL'])
        return tps0

    def get_lp_tips1(self):
        # 旧密码不能为空
        tps1 = self.base_driver.get_text(self.config_dict_fundpassword['OLDNULL'])
        return tps1

    def get_lp_tips2(self):
        # 旧密码错误
        tps2 = self.base_driver.get_text(self.config_dict_fundpassword['OLDERROR'])
        return tps2

    def get_lp_tips3(self):
        # 两次输入密码不一致
        tps3 = self.base_driver.get_text(self.config_dict_fundpassword['PSDIFF'])
        return tps3

    def get_lp_tips4(self):
        # 修改成功
        tps4 = self.base_driver.get_text(self.config_dict_fundpassword['CH_SUCCESS'])
        return tps4

    def click_login(self):
        # 再次点击资金密码
        cl = self.base_driver.click(self.config_dict_fundpassword['FUND_PASSWORD'])
        return cl
Ejemplo n.º 4
0
class WithdrawRecord(BasePage):

    # 提现记录
    # 导入fusion文件中WithdrawRecord
    config_dict_withdrawrecord = YamlHelper().get_config_dict('/fusion/yaml/fusion.yaml')['WithdrawRecord']

    def withdrawrecord(self):
        # 提款方式
        # 全部
        self.base_driver.type(self.config_dict_withdrawrecord['ALL'])
        # 提交
        self.base_driver.type(self.config_dict_withdrawrecord['ONLINE'])
        # 处理中
        self.base_driver.type(self.config_dict_withdrawrecord['TRANSFER'])
        # 确认
        self.base_driver.type(self.config_dict_withdrawrecord['SYSTEM'])
        # 取消
        self.base_driver.type(self.config_dict_withdrawrecord['ORDERNUM'])
        # 拒绝
        self.base_driver.type(self.config_dict_withdrawrecord['ONLINE'])
        # 请选择修改日期
        self.base_driver.type(self.config_dict_withdrawrecord['DATAW'])

    def withdraw_button(self):
        # 查询按钮
        withdraw = self.base_driver.click(self.config_dict_withdrawrecord['CHACKBUTTONW'])
        return withdraw

    def get_rech_tips01(self):
        # 没有更多的数据了
        tips01 = self.base_driver.click(self.config_dict_withdrawrecord['NODATA'])
        return tips01

    def ordernumber(self, row):
        #  请输入订单号
        order = row['ordernum']
        print('没切片前是:      '+row['ordernum'])
        # 切掉表格的第一为N
        neworder = order[1:]
        self.base_driver.type(self.config_dict_withdrawrecord['ORDERNUM'], neworder)
        # self.base_driver.type(self.config_dict_rechargerecord['ORDERNUM'], row['ordernum'])
        # print('输入中的订单号是' + row['ordernum'])
        print('输入中的订单号是:   ' + neworder)
        print(neworder)

    def get_rech_tips03(self):
        # 列表中的订单号
        # 增加N跟数据表格匹配
        tips02 = self.base_driver.get_text(self.config_dict_withdrawrecord['ORDERNUMLIST'])
        tips03 = 'N' + tips02
        print('列表中的订单号是' + tips03)
        return tips03
Ejemplo n.º 5
0
class HomeRegistered(BasePage):
    # 导入fusion.yaml中Registered
    # print(os.getcwd())
    config_dict_regiseter = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['HomeRegistered']

    def homeregistered(self, row):
        print('进入注册页面')
        #  进入注册页面
        #  用户名   6-16之间,由字母/数字/下划线组成6-16个字
        self.base_driver.type(self.config_dict_regiseter['USERNAME'],
                              row['username'])
        print('获取到的用户名是' + row['username'])
        #  密码    长度为6位以上,由数字/字母/下划线组成
        self.base_driver.type(self.config_dict_regiseter['PASSWORD'],
                              row['password'])
        print('获取到的密码是' + row['password'])
        #  邮件
        self.base_driver.type(self.config_dict_regiseter['EMAIL'],
                              row['email'])
        #  推荐ID
        self.base_driver.type(self.config_dict_regiseter['TJID'], row['tjid'])
        #  QQ
        self.base_driver.type(self.config_dict_regiseter['QQNAME'], row['qq'])
        #  验证码
        self.base_driver.type(self.config_dict_regiseter['YZM'], row['yzm'])
        #  立即注册按钮
        self.base_driver.click(self.config_dict_regiseter['BUTTON'])
        self.base_driver.forced_wait(1)

        print('点击注册按钮')

    def get_text_hysign(self):
        # 注册不成功 获取注册按钮
        hysign = self.base_driver.get_text(
            self.config_dict_regiseter['HYSIGN'])
        print('获取到注册按钮信息')

        return hysign

    def get_yzmtip(self):
        # 注册不成功 获取验证码
        hysign = self.base_driver.get_text(
            self.config_dict_regiseter['YZMTPS'])
        return hysign

    def get_yzmtip01(self):
        # 注册不成功 获取验证码
        tips01 = self.base_driver.get_text(self.config_dict_regiseter['TIPS'])
        return tips01
Ejemplo n.º 6
0
class FusionHallLogin(BasePage):
    # 导入fusion.yaml中的FusionMain
    config_dict_fulottery = YamlHelper().get_config_dict('/fusion/fusion.yaml')['FusionHallLogin']

    # 进入购彩大厅后的登陆注册
    def menu(self, menu):
        # 登陆页面、会员注册
        if menu == '登陆页面':
            self.base_driver.click(self.config_dict_fulottery['LOGINPAGE'])
        if menu == '会员注册':
            self.base_driver.click(self.config_dict_fulottery['MEMBERPAGE'])

    def loginpage(self, row):
        # 用户账号
        self.base_driver.get_text(self.config_dict_fulottery['USERNAME'], row['username'])
        # 密码
        self.base_driver.get_text(self.config_dict_fulottery['PASSWORD'], row['password'])
        # 验证码
        self.base_driver.get_text(self.config_dict_fulottery['YZM'], row['yzm'])
        # 登陆按钮
        self.base_driver.click(self.config_dict_fulottery['FASTTHREE'])
        self.base_driver.forced_wait(1)

    def memberpage(self, row):
        # 用户账号
        self.base_driver.get_text(self.config_dict_fulottery['USERNAME'], row['usernam'])
        # 密码
        self.base_driver.get_text(self.config_dict_fulottery['PASSWORD'], row['password'])
        # 邮箱
        self.base_driver.get_text(self.config_dict_fulottery['EMAL'], row['email'])
        # 推荐人ID
        self.base_driver.get_text(self.config_dict_fulottery['REFFERID'], row['refferid'])
        # QQ号码
        self.base_driver.get_text(self.config_dict_fulottery['QQNUMBER'], row['qqnumber'])
        # 验证码
        self.base_driver.get_text(self.config_dict_fulottery['YZM'], row['yzm'])
        # 立即注册
        self.base_driver.click(self.config_dict_fulottery['SIGNUP'])
Ejemplo n.º 7
0
class CompanyDeposit(BasePage):
    # 公司入款
    # 导入fusion文件中CommonRecharge
    config_dict_companyde = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['CompanyDeposit']

    def companydeposit(self, row):
        print("输入和选择金额")
        # self.base_driver.forced_wait(0.5)
        # 充值金额
        if row['susuamount'] == '充值金额':
            self.base_driver.get_text(self.config_dict_companyde['REAMOUNT'])
        # 50,100,300,500,800,1000,2000,3000
        if row['susuamount'] == '50':
            self.base_driver.click(self.config_dict_companyde['50YUAN'])
        if row['susuamount'] == '100':
            self.base_driver.click(self.config_dict_companyde['100YUAN'])
        if row['susuamount'] == '300':
            self.base_driver.click(self.config_dict_companyde['300YUAN'])
        if row['susuamount'] == '500':
            self.base_driver.click(self.config_dict_companyde['500YUAN'])
        if row['susuamount'] == '800':
            self.base_driver.click(self.config_dict_companyde['800YUAN'])
        if row['susuamount'] == '1000':
            self.base_driver.click(self.config_dict_companyde['1000YUAN'])
        if row['susuamount'] == '2000':
            self.base_driver.click(self.config_dict_companyde['2000YUAN'])
        if row['susuamount'] == '3000':
            self.base_driver.click(self.config_dict_companyde['3000YUAN'])
        print('你选择的金额是' + row['susuamount'])

    def comde_bank(self, row):
        # 充值银行
        if row['rechargemethod'] == '中国工商银行我测试啊':
            self.base_driver.click(self.config_dict_companyde['ICBC_MYTEST'])
        if row['rechargemethod'] == '中国工商银行李洁':
            self.base_driver.click(self.config_dict_companyde['ICBC_LEEJIE'])
        if row['rechargemethod'] == '中国光大银行':
            self.base_driver.click(self.config_dict_companyde['EVERBRIGHT'])
        if row['rechargemethod'] == '中国工商银行_susu':
            self.base_driver.click(self.config_dict_companyde['ICBC_SUSU'])
        if row['rechargemethod'] == '中国银行':
            self.base_driver.click(self.config_dict_companyde['CHINABANK'])
        if row['rechargemethod'] == '江苏银行-123':
            self.base_driver.click(self.config_dict_companyde['JIANGSU'])
        if row['rechargemethod'] == '恒丰银行':
            self.base_driver.click(self.config_dict_companyde['HENGFENG'])
        self.base_driver.forced_wait(0.5)
        print('选择银行' + row['rechargemethod'])

    def depoistname(self, row):

        # 存入时间
        self.base_driver.click(self.config_dict_companyde['DEPOISTTIME'],
                               row['depoisttime'])
        # 存款人姓名
        self.base_driver.click(self.config_dict_companyde['DEPOISTNAME'],
                               row['depoistname'])
        # 存款金额
        self.base_driver.click(self.config_dict_companyde['DEPOISTAMOUNT'],
                               row['depoistamount'])

    def next_buttion(self):
        # 下一步按钮
        nextbutton = self.base_driver.click(
            self.config_dict_companyde['NEXTBUTTON'])
        print('点击下一步')
        return nextbutton

    def coupon(self):
        # 优惠劵
        coupon = self.base_driver.click(self.config_dict_companyde['COUPON'])
        return coupon

    def ckmoney(self):
        # 充值金额不符合!
        ckmoney = self.base_driver.click(
            self.config_dict_companyde['AMOUNTMATCH'])
        return ckmoney

    def get_tips(self):
        # 捕捉提示信息
        # self.base_driver.forced_wait(10)
        sumtip = self.base_driver.get_text(self.config_dict_companyde['TIPS'])
        print('下一步')
        return sumtip

    def get_tips02(self):
        # 捕捉 充值金额
        # self.base_driver.forced_wait(10)
        sumtip = self.base_driver.get_text(
            self.config_dict_companyde['TIPS02'])
        print('下一步')
        return sumtip
Ejemplo n.º 8
0
class RechargeRecord(BasePage):
    # 导入fusion文件中RechargeRecord
    config_dict_rechargerecord = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['RechargeRecord']

    def rechargerecord(self, row):
        # 充值方式

        # 全部
        self.base_driver.select_by_value(
            self.config_dict_rechargerecord['ALL'], row['all'])

        # 在线充值
        self.base_driver.select_by_value(
            self.config_dict_rechargerecord['ONLINE'], row['online'])

        # 转账汇款
        self.base_driver.select_by_value(
            self.config_dict_rechargerecord['TRANSFER'], row['transfer'])

        # 系统充值
        self.base_driver.select_by_value(
            self.config_dict_rechargerecord['SYSTEM'], row['system'])

        # 红包领取
        self.base_driver.select_by_value(
            self.config_dict_rechargerecord['GETRED'], row['getbag'])

        self.base_driver.forced_wait(4)
        print("选择充值方式" + row['rechmethod'])

    #
    # def rechargerecord(self, row):
    #     # 充值方式
    #     if row['rechmethod'] == '全部':
    #         # 全部
    #         self.base_driver.select_by_value(self.config_dict_rechargerecord['ALL'])
    #     if row['rechmethod'] == '在线充值':
    #         # 在线充值
    #         self.base_driver.select_by_value(self.config_dict_rechargerecord['ONLINE'])
    #     if row['rechmethod'] == '转账汇款':
    #         # 转账汇款
    #         self.base_driver.select_by_value(self.config_dict_rechargerecord['TRANSFER'])
    #     if row['rechmethod'] == '系统充值':
    #         # 系统充值
    #         self.base_driver.select_by_value(self.config_dict_rechargerecord['SYSTEM'])
    #     if row['rechmethod'] == '红包领取':
    #         # 红包领取
    #         self.base_driver.select_by_value(self.config_dict_rechargerecord['GETRED'])
    #
    #     self.base_driver.forced_wait(4)
    #     print("选择充值方式" + row['rechmethod'])

    def rechargerecord01(self, row):
        # 会员中心登陆
        self.base_driver.type(self.config_dict_rechargerecord['UESE01'],
                              'lee6281376')
        self.base_driver.type(self.config_dict_rechargerecord['PASS01'],
                              'lee123')
        self.base_driver.type(self.config_dict_rechargerecord['YZM01'], '123')

        # 登陆按钮
        self.base_driver.click(self.config_dict_rechargerecord['BUTTON01'])
        print("登陆成功")
        self.base_driver.forced_wait(3)
        print('财务中心')
        self.base_driver.click(self.config_dict_rechargerecord['FINANCIAL'])
        print('充值记录')
        self.base_driver.forced_wait(3)
        self.base_driver.click(self.config_dict_rechargerecord['RECODES'])
        self.base_driver.forced_wait(5)

    def ordernumber(self, row):
        #  请输入订单号
        order = row['ordernum']
        print('没切片前' + row['ordernum'])
        # 切掉表格的第一为N
        neworder = order[1:]
        self.base_driver.type(self.config_dict_rechargerecord['ORDERNUM'],
                              neworder)
        # self.base_driver.type(self.config_dict_rechargerecord['ORDERNUM'], row['ordernum'])
        # print('输入中的订单号是' + row['ordernum'])
        print('输入中的订单号是' + neworder)
        print(neworder)

    def modifydate(self):
        # 请选择修改日期
        self.base_driver.type(self.config_dict_rechargerecord['MODIFYDATA'])

    def rech_button(self):
        # 查询按钮
        withdraw = self.base_driver.click(
            self.config_dict_rechargerecord['CHACKBUTTONR'])
        return withdraw

    def get_rech_tips01(self):
        # orderNo必须是数字
        tips01 = self.base_driver.click(
            self.config_dict_rechargerecord['ORDERNO'])
        return tips01

    def get_rech_tips02(self):
        # 没有更多的数据了
        tips02 = self.base_driver.click(
            self.config_dict_rechargerecord['NODATAR'])

        return tips02

    def get_rech_tips03(self):
        # 列表中的订单号
        # 增加N跟数据表格匹配
        tips02 = self.base_driver.get_text(
            self.config_dict_rechargerecord['ORDERNUMLIST'])
        tips03 = 'N' + tips02
        print('列表中的订单号是' + tips03)
        return tips03

    def get_button(self):
        # 查询按钮
        withdraw = self.base_driver.get_text(
            self.config_dict_rechargerecord['CHACKBUTTONR'])
        return withdraw

    def get_button1(self):
        # 查询按钮
        withdraw = self.base_driver.get_text(
            self.config_dict_rechargerecord['ORDERNUM1'])
        print('获取两字是:' + withdraw)
        return withdraw
Ejemplo n.º 9
0
class Withdraw(BasePage):
    # 导入fusion文件中Withdraw
    config_dict_withdraw = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['Withdraw']

    def withdraw(self, row):
        # 提现金额
        self.base_driver.type(self.config_dict_withdraw['WITHDRAW'],
                              row['withdraw'])
        print('提现金额是' + row['withdraw'])

        # 资金密码
        self.base_driver.type(self.config_dict_withdraw['FUNDPASSWORD'],
                              row['fundpassword'])

        print('提现金额是' + row['fundpassword'])

    def withdraw_button(self):
        # 提现按钮
        withdraw = self.base_driver.click(
            self.config_dict_withdraw['WITHDRAWBUTTON'])
        return withdraw

    def get_withdraw_tips01(self):
        # 金额格式错误
        tips01 = self.base_driver.click(
            self.config_dict_withdraw['AMOUNTERROR'])
        return tips01

    def get_withdraw_tips02(self):
        # 余额不足
        tips02 = self.base_driver.click(self.config_dict_withdraw['NOTENOUTH'])
        return tips02

    def get_withdraw_tips03(self):
        # 资金密码有6位数字组成
        tips03 = self.base_driver.click(self.config_dict_withdraw['PASSERROR'])
        return tips03

    def get_withdraw_tips04(self):
        # 提现过于频繁或重复提交,1分钟后再试
        tips04 = self.base_driver.click(self.config_dict_withdraw['PINFAN'])
        return tips04

    def get_withdraw_tips05(self):
        # 当前用户最低可提现金额为10.00元
        tips05 = self.base_driver.click(self.config_dict_withdraw['LOWEST'])
        return tips05

    def get_withdraw_tips06(self):
        # 提现周期内次数限制
        tips06 = self.base_driver.click(self.config_dict_withdraw['NUMLIMIT'])
        return tips06

    def get_withdraw_tips07(self):
        # 提现成功!
        tips07 = self.base_driver.click(self.config_dict_withdraw['WSUCCESS'])
        return tips07

    def checkbutton(self):
        # 查看稽查详情
        cb = self.base_driver.click(self.config_dict_withdraw['FUNDPASSWORD'])
        return cb

    def get_tips01(self):
        # 获取提现金额标签
        tips01 = self.base_driver.get_text(
            self.config_dict_withdraw['TXlABEL'])
        return tips01
Ejemplo n.º 10
0
class FusionLotteryHall(BasePage):
    # 导入fusion.yaml中的FusionMain
    config_dict_fulottery = YamlHelper().get_config_dict('/fusion/fusion.yaml')['FusionLotteryHall']

    def hall_menu(self, menu):
        # 点击数字彩
        # 购彩大厅
        if menu == '购彩大厅':
            self.base_driver.click(self.config_dict_fulottery['LOTTERYHALL'])
        if menu == '低频彩':
            self.base_driver.click(self.config_dict_fulottery['LOWCOLOR'])
        if menu == '六合彩':
            self.base_driver.click(self.config_dict_fulottery['MARKSIX'])
        if menu == '时时彩':
            self.base_driver.click(self.config_dict_fulottery['TIMOCOLOR'])
        if menu == 'PK10':
            self.base_driver.click(self.config_dict_fulottery['PK10'])
        if menu == '10选5':
            self.base_driver.click(self.config_dict_fulottery['CHOICE'])
        if menu == '快3':
            self.base_driver.click(self.config_dict_fulottery['FASTTHREE'])
        if menu == 'PC蛋蛋':
            self.base_driver.click(self.config_dict_fulottery['PCEGG'])
            self.base_driver.forced_wait(1)

    def hall_lowcolor(self, lowcolor):
        # 低频彩
        if lowcolor == '福彩3D':
            self.base_driver.click(self.config_dict_fulottery['FULOTTERY'])
        if lowcolor == '极速3D':
            self.base_driver.click(self.config_dict_fulottery['SPEED'])
        if lowcolor == '排列三':
            self.base_driver.click(self.config_dict_fulottery['ARRANGE'])
        self.base_driver.forced_wait(1)

    def hall_marksix(self, marksix):
        # 六合彩
        if marksix == '五分六合彩':
            self.base_driver.click(self.config_dict_fulottery['FIVEMARKSIX'])
        if marksix == '分分六合彩':
            self.base_driver.click(self.config_dict_fulottery['MIMARKSIX'])
        if marksix == '香港六合彩':
            self.base_driver.click(self.config_dict_fulottery['HKMARKSIX'])
        if marksix == '三分六合彩':
            self.base_driver.click(self.config_dict_fulottery['THREEMARKSIX'])
        self.base_driver.forced_wait(1)
        print("选择完成")

    def hall_timecolor(self, timecolor):
        # 时时彩
        if timecolor == '天津时时彩':
            self.base_driver.click(self.config_dict_fulottery['TIANJINTIME'])
        if timecolor == '分分时时彩':
            self.base_driver.click(self.config_dict_fulottery['MIMITIME'])
        if timecolor == '北京时时彩':
            self.base_driver.click(self.config_dict_fulottery['BEIJINGTIME'])
        if timecolor == '五分时时彩':
            self.base_driver.click(self.config_dict_fulottery['FIVEMITIME'])
        if timecolor == '重庆时时彩':
            self.base_driver.click(self.config_dict_fulottery['CHONGQING'])
        if timecolor == '三分时时彩':
            self.base_driver.click(self.config_dict_fulottery['THREETIME'])
        if timecolor == '新疆时时彩':
            self.base_driver.click(self.config_dict_fulottery['XINJIANG'])
        self.base_driver.forced_wait(1)

    def hall_pk10(self, pk10):
        # PK10
        if pk10 == '北京PK拾':
            self.base_driver.click(self.config_dict_fulottery['BEIJINGPK10'])
        if pk10 == '幸运飞艇':
            self.base_driver.click(self.config_dict_fulottery['LUCKYPK10'])
        if pk10 == '五分PK拾':
            self.base_driver.click(self.config_dict_fulottery['FIVEMIPK10'])
        if pk10 == '分分PK拾':
            self.base_driver.click(self.config_dict_fulottery['MIMIPK10'])
        if pk10 == '三分PK拾':
            self.base_driver.click(self.config_dict_fulottery['THREEPK10'])
        self.base_driver.forced_wait(1)

    def hall_ecfive(self, ecfive):
        # 11选5
        if ecfive == '广东11选5':
            self.base_driver.click(self.config_dict_fulottery['GUANGDONGC'])
        if ecfive == '山东11选5':
            self.base_driver.click(self.config_dict_fulottery['SHANDONGC'])
        if ecfive == '安徽11选5':
            self.base_driver.click(self.config_dict_fulottery['ANHUIC'])
        if ecfive == '上海11选5':
            self.base_driver.click(self.config_dict_fulottery['SHANGHAIC'])
        if ecfive == '江西11选5':
            self.base_driver.click(self.config_dict_fulottery['SHANXIC'])
        if ecfive == '分分11选5':
            self.base_driver.click(self.config_dict_fulottery['MIMICHOICE'])
        self.base_driver.forced_wait(1)

    def hall_fastthree(self, fastthree):
        #   快3
        if fastthree == '安徽快3':
            self.base_driver.click(self.config_dict_fulottery['AHFAST'])
        if fastthree == '广西快3':
            self.base_driver.click(self.config_dict_fulottery['GXFAST'])
        if fastthree == '湖北快3':
            self.base_driver.click(self.config_dict_fulottery['HBFAST'])
        if fastthree == '三分快3':
            self.base_driver.click(self.config_dict_fulottery['THFAST'])
        if fastthree == '吉林快3':
            self.base_driver.click(self.config_dict_fulottery['JLFAST'])
        if fastthree == '江苏快3':
            self.base_driver.click(self.config_dict_fulottery['JSFAST'])
        if fastthree == '分分快3':
            self.base_driver.click(self.config_dict_fulottery['MMFAST'])
        if fastthree == '五分快3':
            self.base_driver.click(self.config_dict_fulottery['FMFAST'])
        self.base_driver.forced_wait(1)

    def hall_pcegg(self,pcegg):
        #   PC蛋蛋
        if pcegg == '北京28':
            self.base_driver.click(self.config_dict_fulottery['BJEGG'])
        if pcegg == '分分28':
            self.base_driver.click(self.config_dict_fulottery['MMEGG'])
        if pcegg == '五分28':
            self.base_driver.click(self.config_dict_fulottery['FMEGG'])
        if pcegg == '幸运28':
            self.base_driver.click(self.config_dict_fulottery['LCEGG'])
        if pcegg == '三分28':
            self.base_driver.click(self.config_dict_fulottery['THEGG'])
Ejemplo n.º 11
0
class GeRenZhongXin(TestCase):

    config_dict_hyzx = YamlHelper().get_config_dict(
        '/fusion/fusion.yaml')['HuiYuanZhongXin']

    def hyzx_menu(self, hyzx_menus):
        # 个人中心、财务中心、代理中心、电子游艺、交易记录、信息公告、帮助反馈、我的优惠劵
        if hyzx_menus == '个人中心':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[1]')
        if hyzx_menus == '财务中心':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[2]')
        if hyzx_menus == '代理中心':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[3]')
        if hyzx_menus == '电子游艺':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[4]')
        if hyzx_menus == '交易记录':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[5]')
        if hyzx_menus == '信息公告':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[6]')
        if hyzx_menus == '帮助反馈':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[7]')
        if hyzx_menus == '我的优惠劵':
            self.base_driver.click('xpath,//*[@id="main"]/div/ul/li[8]')

    def hyzx_grzx_idem(self, hyzx_grzx_idem):
        # 个人中心
        if hyzx_grzx_idem == '登陆密码':
            self.base_driver.click('xpath,//*[@id="main"]/div/section/div[1]')
        if hyzx_grzx_idem == '资金密码':
            self.base_driver.click('xpath,//*[@id="main"]/div/section/div[2]')
        if hyzx_grzx_idem == '我的银行卡':
            self.base_driver.click('xpath,//*[@id="main"]/div/section/div[3]')

    def hyzx_grzx_idem_dl(self, hyzx_grzx_idem_dl):
        # 密码规则:密码为6位以上,由数字/字母/下划线组成
        if hyzx_grzx_idem_dl == '请输入原始密码':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[1]/div[2]/form/input[1]'
            )
        if hyzx_grzx_idem_dl == '请输入登陆密码':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[1]/div[2]/form/input[2]'
            )
        if hyzx_grzx_idem_dl == '请输入确认密码':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[1]/div[2]/form/input[3]'
            )

    def hyzx_cwzx_idem(self, hyzx_cwzx_idem):

        # 财务中心

        if hyzx_cwzx_idem == '充值':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/ul/li[2]/ul/li[1]')
        if hyzx_cwzx_idem == '提现':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/ul/li[2]/ul/li[2]')
        if hyzx_cwzx_idem == '充值记录':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/ul/li[2]/ul/li[3]')
        if hyzx_cwzx_idem == '提现记录':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/ul/li[2]/ul/li[4]')

    def hyzx_cwzx_idem_rk(self, hyzx_cwzx_idem_rk):

        # 充值入款方式
        if hyzx_cwzx_idem_rk == 'SUSU公司入款':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/ul/li[1]')
        if hyzx_cwzx_idem_rk == '支付宝转账':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/ul/li[2]')
        if hyzx_cwzx_idem_rk == '公司入款':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/ul/li[3]')
        if hyzx_cwzx_idem_rk == 'VIP代理充值':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/ul/li[4]')

    def hyzx_cwzx_idem_rk_bank(self, hyzx_cwzx_idem_rk_bank):
        # 充值入款方式
        if hyzx_cwzx_idem_rk_bank == '中国工商银行_susu':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[1]')
        if hyzx_cwzx_idem_rk_bank == '中国工商银行我测试啊':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[2]')
        if hyzx_cwzx_idem_rk_bank == '中国工商银行李洁':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[3]')
        if hyzx_cwzx_idem_rk_bank == '中国光大银行':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[4]')
        if hyzx_cwzx_idem_rk_bank == '中国银行':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[5]')
        if hyzx_cwzx_idem_rk_bank == '江苏银行-123':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[6]')
        if hyzx_cwzx_idem_rk_bank == '恒丰银行':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[2]/li[7]')

    def hyzx_cwzx_idem_rk_yuan(self, hyzx_cwzx_idem_rk_yuan):
        # 50,100,300,500,800,1000,2000,3000
        if hyzx_cwzx_idem_rk_yuan == '50':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[1]')
        if hyzx_cwzx_idem_rk_yuan == '100':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[2]')
        if hyzx_cwzx_idem_rk_yuan == '300':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[3]')
        if hyzx_cwzx_idem_rk_yuan == '500':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[4]')
        if hyzx_cwzx_idem_rk_yuan == '800':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[5]')
        if hyzx_cwzx_idem_rk_yuan == '1000':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[6]')
        if hyzx_cwzx_idem_rk_yuan == '2000':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[7]')
        if hyzx_cwzx_idem_rk_yuan == '3000':
            self.base_driver.click(
                'xpath,//*[@id="main"]/div/section/div[2]/div/ul[1]/li[8]')
Ejemplo n.º 12
0
class VipAgentDeposit(BasePage):
    # vip代理充值
    # 导入fusion.yaml中VipAgent

    config_dict_vade = YamlHelper().get_config_dict('/fusion/yaml/fusion.yaml')['VipAgent']

    def vipagent(self, row):
        # 充值金额
        print("输入和选择金额")
        # self.base_driver.forced_wait(0.5)
        # 充值金额
        if row['susuamount'] == '充值金额':
            self.base_driver.get_text(self.config_dict_vade['REAMOUNT'])
        # 50,100,300,500,800,1000,2000,3000
        if row['susuamount'] == '50':
            self.base_driver.click(self.config_dict_vade['50YUAN'])
        if row['susuamount'] == '100':
            self.base_driver.click(self.config_dict_vade['100YUAN'])
        if row['susuamount'] == '300':
            self.base_driver.click(self.config_dict_vade['300YUAN'])
        if row['susuamount'] == '500':
            self.base_driver.click(self.config_dict_vade['500YUAN'])
        if row['susuamount'] == '800':
            self.base_driver.click(self.config_dict_vade['800YUAN'])
        if row['susuamount'] == '1000':
            self.base_driver.click(self.config_dict_vade['1000YUAN'])
        if row['susuamount'] == '2000':
            self.base_driver.click(self.config_dict_vade['2000YUAN'])
        if row['susuamount'] == '3000':
            self.base_driver.click(self.config_dict_vade['3000YUAN'])
        print('你选择的金额是' + row['susuamount'])

    def susu00(self,row):
        # susususu000000
        if row['rechargemethod'] == 'susususu000000':
            self.base_driver.click(self.config_dict_vade['BUILDBANK'])

    def next_buttion(self):
        # 下一步按钮
        nt = self.base_driver.click(self.config_dict_vade['NEXTBUTTON'])
        return nt

    def coupou(self):
        # 优惠劵
        cp = self.base_driver.click(self.config_dict_vade['COUPON'])
        return cp

    def savemoney(self):

        # 存款金额
        self.base_driver.get_text(self.config_dict_vade['SAVEMONEY'])
        # 存款时间
        self.base_driver.get_text(self.config_dict_vade['SAVETIME'])
        # 转账时间
        self.base_driver.get_text(self.config_dict_vade['TRANSFERNOTE'])
        # 充值验证信息
        self.base_driver.get_text(self.config_dict_vade['TRANINFO'])

    def vbuttion(self):
        # 下一步按钮
        vb = self.base_driver.click(self.config_dict_vade['VBUTTON'])
        return vb

    def get_tips01(self):
        # 捕捉 充值金额
        # self.base_driver.forced_wait(10)
        sumtip = self.base_driver.get_text(self.config_dict_vade['TIPS01'])
        print('下一步')
        return sumtip
Ejemplo n.º 13
0
class SuSuDeposit(BasePage):
    # susu公司入款
    # 导入fusion文件中SuSuDeposit
    config_dict_susudep = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['SuSuDeposit']

    def susudeposit(self, row):
        print("输入和选择金额")
        # self.base_driver.forced_wait(0.5)
        # 充值金额
        # if row['susuamount'] == '充值金额':
        #     self.base_driver.type(self.config_dict_susudep['REAMOUNT'], row['susuamount'])
        # 50,100,300,500,800,1000,2000,3000
        if row['susuamount'] == '50':
            self.base_driver.click(self.config_dict_susudep['50YUAN'])
        if row['susuamount'] == '100':
            self.base_driver.click(self.config_dict_susudep['100YUAN'])
        if row['susuamount'] == '300':
            self.base_driver.click(self.config_dict_susudep['300YUAN'])
        if row['susuamount'] == '500':
            self.base_driver.click(self.config_dict_susudep['500YUAN'])
        if row['susuamount'] == '800':
            self.base_driver.click(self.config_dict_susudep['800YUAN'])
        if row['susuamount'] == '1000':
            self.base_driver.click(self.config_dict_susudep['1000YUAN'])
        if row['susuamount'] == '2000':
            self.base_driver.click(self.config_dict_susudep['2000YUAN'])
        if row['susuamount'] == '3000':
            self.base_driver.click(self.config_dict_susudep['3000YUAN'])
        print('你选择的金额是' + row['susuamount'])

    def rechargemethod(self, row):
        # 充值银行
        # self.base_driver.forced_wait(0.5)
        if row['rechargemethod'] == '中国工商银行_susu':
            self.base_driver.click(self.config_dict_susudep['ICBC_SUSU'])
        if row['rechargemethod'] == '中国工商银行_susu':
            self.base_driver.click(self.config_dict_susudep['ICBC_SUSU'])
        if row['rechargemethod'] == '中国工商银行我测试啊':
            self.base_driver.click(self.config_dict_susudep['ICBC_MYTEST'])
        if row['rechargemethod'] == '中国工商银行李洁':
            self.base_driver.click(self.config_dict_susudep['ICBC_LEEJIE'])
        if row['rechargemethod'] == '中国光大银行':
            self.base_driver.click(self.config_dict_susudep['EVERBRIGHT'])
        if row['rechargemethod'] == '中国银行':
            self.base_driver.click(self.config_dict_susudep['CHINABANK'])
        if row['rechargemethod'] == '江苏银行-123':
            self.base_driver.click(self.config_dict_susudep['JIANGSU'])
        if row['rechargemethod'] == '恒丰银行':
            self.base_driver.click(self.config_dict_susudep['HENGFENG'])

        print('选择银行' + row['rechargemethod'])
        self.base_driver.forced_wait(0.5)

    def depoistname(self, row):
        print('进入存款信息')
        #self.base_driver.forced_wait(5)

        # 存入时间
        #self.base_driver.type(self.config_dict_susudep['DEPOISTTIME'], row['depoisttime'])
        # 存款人姓名
        self.base_driver.type(self.config_dict_susudep['DEPOISTNAME'],
                              row['depoistname'])
        # 存款金额
        #self.base_driver.type(self.config_dict_susudep['DEPOISTAMOUNT'], row['depoistamount'])

    def next_buttion(self):
        # 下一步
        nextbutton = self.base_driver.click(
            self.config_dict_susudep['NEXTBUTTON'])
        print('下一步')
        return nextbutton

    def coupon(self):
        # 优惠劵
        coupon = self.base_driver.click(self.config_dict_susudep['COUPON'])
        return coupon

    def get_ckmoney(self):
        # 充值金额不符合!
        ckmoney = self.base_driver.get_text(
            self.config_dict_susudep['AMOUNTMATCH'])
        return ckmoney

    def rechgebutton(self):
        # 确认存款
        nextbutton = self.base_driver.click(
            self.config_dict_susudep['SURE_MONEY_BUTTON'])
        print('确认存款')
        # self.base_driver.forced_wait(10)
        return nextbutton

    def recharge_50(self):
        # 充值金额50
        self.base_driver.forced_wait(10)
        re50 = self.base_driver.get_text(
            self.config_dict_susudep['RECHANGE50'])
        print('下一步')
        return re50

    def sum_tips(self):
        # 提交成功
        # self.base_driver.forced_wait(10)
        sumtip = self.base_driver.get_text(
            self.config_dict_susudep['SUMTIP01'])
        print('下一步')
        return sumtip

    def get_tips01(self):
        # 捕捉 充值金额
        # self.base_driver.forced_wait(10)
        sumtip = self.base_driver.get_text(self.config_dict_susudep['TIPS01'])
        print('下一步')
        return sumtip
Ejemplo n.º 14
0
class AlipayTransfer(BasePage):
    # 支付包转账
    # 导入fusion文件中AlipayTransfer
    config_dict_alipt = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['AlipayTransfer']

    def alipaytransfer(self, row):
        print("输入和选择金额")
        # self.base_driver.forced_wait(0.5)
        # 充值金额
        # if row['susuamount'] == '充值金额':
        #     self.base_driver.type(self.config_dict_susudep['REAMOUNT'], row['susuamount'])
        # 50,100,300,500,800,1000,2000,3000
        if row['alipaymount'] == '50':
            self.base_driver.click(self.config_dict_alipt['50YUAN'])
        if row['alipaymount'] == '100':
            self.base_driver.click(self.config_dict_alipt['100YUAN'])
        if row['alipaymount'] == '300':
            self.base_driver.click(self.config_dict_alipt['300YUAN'])
        if row['alipaymount'] == '500':
            self.base_driver.click(self.config_dict_alipt['500YUAN'])
        if row['alipaymount'] == '800':
            self.base_driver.click(self.config_dict_alipt['800YUAN'])
        if row['alipaymount'] == '1000':
            self.base_driver.click(self.config_dict_alipt['1000YUAN'])
        if row['alipaymount'] == '2000':
            self.base_driver.click(self.config_dict_alipt['2000YUAN'])
        if row['alipaymount'] == '3000':
            self.base_driver.click(self.config_dict_alipt['3000YUAN'])
        print('你选择的金额是' + row['alipaymount'])

    def buildbank(self, row):
        # 建设银行-戚念
        # 充值银行
        self.base_driver.forced_wait(0.5)
        if row['rechargemethod'] == '建设银行-戚念':
            self.base_driver.click(self.config_dict_alipt['BUILDBANK'])
        print('你选择的银行是' + row['rechargemethod'])

    def next_buttion(self):
        # 下一步按钮
        print('点击按钮')
        nt = self.base_driver.click(self.config_dict_alipt['NEXTBUTTON'])
        return nt

    def coupou(self):
        # 优惠劵
        cp = self.base_driver.click(self.config_dict_alipt['COUPON'])
        return cp

    def qrcode(self):
        # 二维码
        qr = self.base_driver.get_text(self.config_dict_alipt['3000YUAN'])
        return qr

    def get_tips(self):
        # 捕捉充值金额不符合提示
        print('进入捕捉')
        tips = self.base_driver.get_text(self.config_dict_alipt['TIPS'])
        print('捕捉到的提示' + tips)
        return tips

    def get_tips01(self):
        # 捕捉 充值金额
        sumtip = self.base_driver.get_text(self.config_dict_alipt['TIPS'])
        print('下一步')
        return sumtip

    def get_ornum(self):
        # 获得的订单号是
        orn = self.base_driver.get_text(self.config_dict_alipt['ORDERSUCC'])
        print('获得订单号是' + orn)
        return orn

    def get_ordertips(self):
        # 订单提交成功,请扫描以下二维码付款!
        orn = self.base_driver.get_text(self.config_dict_alipt['ORDERTIPS'])
        print('获得订单号是' + orn)
        return orn
Ejemplo n.º 15
0
class LoginPassword(BasePage):
    # 导入fusion.yaml文件中的LoginPassword
    config_dict_loginpassword = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['LoginPassword']

    def per_center(self, percenter):
        # 个人中心
        if percenter == '登陆密码':
            self.base_driver.click(
                self.config_dict_loginpassword['LOGIN_PASSWORD'])
        if percenter == '资金密码':
            self.base_driver.click(
                self.config_dict_loginpassword['FUND_PASSWORD'])
        if percenter == '我的银行卡':
            self.base_driver.click(self.config_dict_loginpassword['MY_CARD'])

    def percenter_login(self, row):
        # 登录密码
        # 密码规则:密码为6位以上,由数字/字母/下划线组成
        # 请输入原始密码
        self.base_driver.type(self.config_dict_loginpassword['OLDPASSWORD'],
                              row['oldpassword'])
        # 请输入登陆密码
        self.base_driver.type(self.config_dict_loginpassword['NEWPASSWORD'],
                              row['newpassword'])
        # 请输入确认密码':
        self.base_driver.type(self.config_dict_loginpassword['NEWPASSWORD1'],
                              row['newpassword1'])
        print('请输入原始密码' + row['oldpassword'])
        print('请输入登陆密码' + row['newpassword'])
        print('请输入确认密码' + row['newpassword1'])

    def sub_button(self):
        sub = self.base_driver.click(
            self.config_dict_loginpassword['SUMBITLOGIN'])
        return sub

    def click_login(self):
        cl = self.base_driver.click(
            self.config_dict_loginpassword['LOGIN_PASSWORD'])
        return cl

    def get_tips(self):
        # 获取提示
        print('进入获取')
        tps0 = self.base_driver.get_text(
            self.config_dict_loginpassword['ALLTIPS'])
        print('获取到的提示是' + tps0)
        return tps0

    def get_lp_tips0(self):

        # 旧密码不能为空
        tps0 = self.base_driver.get_text(
            self.config_dict_loginpassword['OLDPASSWORD_TIP'])
        return tps0

    def get_lp_tips1(self):
        # 密码不能为空
        tps1 = self.base_driver.get_text(
            self.config_dict_loginpassword['NEWPASSWORD_TIP'])
        return tps1

    def get_lp_tips2(self):
        # 密码确认不能为空
        tps2 = self.base_driver.get_text(
            self.config_dict_loginpassword['NEWPASSWORD1_TIP'])
        return tps2

    def get_lp_tips3(self):
        # 两次输入密码不一样
        tps3 = self.base_driver.get_text(
            self.config_dict_loginpassword['NEWPASSWORD2_TIP'])
        return tps3

    def get_lp_tips4(self):
        # 原密码不正确
        tps4 = self.base_driver.get_text(
            self.config_dict_loginpassword['OLDFAIL'])
        return tps4

    def get_lp_tips5(self):
        # 修改成功
        tps5 = self.base_driver.get_text(
            self.config_dict_loginpassword['CHANGER_SUCCESS'])
        return tps5
Ejemplo n.º 16
0
class FusionMain(BasePage):
    # 导入fusion.yaml中的FusionMain
    config_dict_fusionmain = YamlHelper().get_config_dict(
        '/fusion/yaml/fusion.yaml')['FusionMain']

    def main_menu(self, menus):

        # 首页
        # 主标题栏
        if menus == '首页':
            self.base_driver.click(self.config_dict_fusionmain['HOME'])
        if menus == '数字彩':
            self.base_driver.click(self.config_dict_fusionmain['LOTTERY'])
        if menus == '体彩':
            self.base_driver.click(self.config_dict_fusionmain['SPORT'])
        if menus == '电子游艺':
            self.base_driver.click(self.config_dict_fusionmain['GAME'])
        if menus == '手机购彩':
            self.base_driver.click(self.config_dict_fusionmain['PHONE'])
        if menus == '优惠活动':
            self.base_driver.click(self.config_dict_fusionmain['ACTIVITY'])
        if menus == '开奖公告':
            self.base_driver.click(self.config_dict_fusionmain['LOTTNOTE'])
        if menus == '走势图表':
            self.base_driver.click(self.config_dict_fusionmain['TRENDCHART'])
            self.base_driver.forced_wait(1)

    def mian_items(self, items):
        # 小标题导航
        # 免费试玩
        if items == '免费试玩':
            self.base_driver.click(self.config_dict_fusionmain['FREETRY'])
        if items == '特殊代理':
            self.base_driver.click(self.config_dict_fusionmain['SPEAGENT'])
        if items == '加入代理':
            self.base_driver.click(self.config_dict_fusionmain['ADDAGENT'])
        if items == '帮助中心':
            self.base_driver.click(self.config_dict_fusionmain['FREETRY'])
        if items == '玩法':
            self.base_driver.click(self.config_dict_fusionmain['SPEAGENT'])
        if items == '资讯':
            self.base_driver.click(self.config_dict_fusionmain['NEWS'])
        if items == '快速充值通道':
            self.base_driver.click(self.config_dict_fusionmain['FASTCHANNEL'])
            self.base_driver.forced_wait(1)

        # 登陆注册前
    def login_before(self, row):
        # 用户名
        self.base_driver.type(self.config_dict_fusionmain['USERNAME'],
                              row['username'])
        print('输入的用户名是:' + row['username'])
        # 密码
        self.base_driver.type(self.config_dict_fusionmain['PASSERROR'],
                              row['password'])
        # 验证码
        print('输入的密码是:' + row['password'])
        self.base_driver.type(self.config_dict_fusionmain['YZM'], row['yzm'])
        # 登陆按钮
        self.base_driver.click(self.config_dict_fusionmain['LOGINBUTTON'])
        self.base_driver.forced_wait(3)

    def login_buttin(self, lb):
        # 注册按钮
        if lb == '注册':
            self.base_driver.click(self.config_dict_fusionmain['REGISTERED'])
        self.base_driver.forced_wait(1)
        print("登陆注册期前")

    def login_drop(self):
        self.base_driver.click(self.config_dict_fusionmain['DROPOUT'])
        self.base_driver.forced_wait(1)
        print("登陆注册期前")

    # 登陆成功后
    def login_success(self, lg_succ):
        if lg_succ == '刷新':
            self.base_driver.click(self.config_dict_fusionmain['REFRESL'])
        if lg_succ == '会员中心':
            self.base_driver.click(self.config_dict_fusionmain['PERCENTER'])
        if lg_succ == '充值':
            self.base_driver.click(self.config_dict_fusionmain['DEPOIST'])
        if lg_succ == '提现':
            self.base_driver.click(self.config_dict_fusionmain['WITHDRAW'])
        if lg_succ == '投注记录':
            self.base_driver.click(self.config_dict_fusionmain['BETRECORD'])
        if lg_succ == '退出':
            self.base_driver.click(self.config_dict_fusionmain['DROPOUT'])
        self.base_driver.forced_wait(1)
        print("登陆注册后")

    # 断言
    def get_login_tips01(self):
        # 请填写用户名
        tip01 = self.base_driver.get_text(
            self.config_dict_fusionmain['FILLNAME'])
        return tip01

    def get_login_tips022(self):
        # 请填写密码
        tip021 = self.base_driver.get_text(
            self.config_dict_fusionmain['FILLNAME'])
        return tip021

    def get_login_tips02(self):
        # 登陆按钮
        tip02 = self.base_driver.get_text(
            self.config_dict_fusionmain['LOGINBUTTON'])
        print(tip02)
        return tip02

    def get_login_tips03(self):
        # 退出
        tip03 = self.base_driver.get_text(
            self.config_dict_fusionmain['DROPOUT'])
        print(tip03)
        return tip03
Ejemplo n.º 17
0
class MinuteMarkSix(BasePage):
    # 分六合彩
    config_dict_marksix = YamlHelper().get_config_dict('/fusion/yaml/lottery_marksix.yaml')['MarkSix']

    def menu(self):
        self.base_driver.click(self.config_dict_marksix['MENU'])

    # 两面-------------
    def twosides(self, row):
        self.base_driver.click(self.config_dict_marksix['TWOSIDES'])
        if row['twosides'] == '特双':
            self.base_driver.type(self.config_dict_marksix['TESHUANG'], row['money'])
        if row['twosides'] == '特单':
            self.base_driver.type(self.config_dict_marksix['TEDAN'], row['money'])
        if row['twosides'] == '特大':
            self.base_driver.type(self.config_dict_marksix['TESDA'], row['money'])
        if row['twosides'] == '特小':
            self.base_driver.type(self.config_dict_marksix['TEXIAO'], row['money'])
        if row['twosides'] == '特合单':
            self.base_driver.type(self.config_dict_marksix['TEHEDAN'], row['money'])

    def twosidesall(self, row):
        # 两面
        self.base_driver.click(self.config_dict_marksix['TWOSIDES'])
        print('进入玩法两面')
        self.base_driver.forced_wait(1)
        # 特双
        self.base_driver.type(self.config_dict_marksix['TESHUANG'], row['money'])
        # 特单
        self.base_driver.type(self.config_dict_marksix['TEDAN'], row['money'])
        # 特大
        self.base_driver.type(self.config_dict_marksix['TESDA'], row['money'])
        # 特小
        self.base_driver.type(self.config_dict_marksix['TEXIAO'], row['money'])
        # 特合单
        self.base_driver.type(self.config_dict_marksix['TEHEDAN'], row['money'])
        # 特合双
        self.base_driver.type(self.config_dict_marksix['TEHESHUANG'], row['money'])
        # 特合大
        self.base_driver.type(self.config_dict_marksix['TEHEDA'], row['money'])
        # 特合小
        self.base_driver.type(self.config_dict_marksix['TEHEXIAO'], row['money'])
        # 特尾大
        self.base_driver.type(self.config_dict_marksix['TEHTAILDA'], row['money'])
        # 特尾小
        self.base_driver.type(self.config_dict_marksix['TETAILXIAO'], row['money'])
        # 特天肖
        self.base_driver.type(self.config_dict_marksix['TIANXIAO'], row['money'])
        # 特地肖
        self.base_driver.type(self.config_dict_marksix['DIXIAO'], row['money'])
        # 特前肖
        self.base_driver.type(self.config_dict_marksix['QIANXIAO'], row['money'])
        # 特后肖
        self.base_driver.type(self.config_dict_marksix['HOUXIAO'], row['money'])
        # 特家肖
        self.base_driver.type(self.config_dict_marksix['JIAXIAO'], row['money'])
        # 特野肖
        self.base_driver.type(self.config_dict_marksix['YEXIAO'], row['money'])
        # 总单
        self.base_driver.type(self.config_dict_marksix['ZONGDAN'], row['money'])
        # 总双
        self.base_driver.type(self.config_dict_marksix['ZONGSHUANG'], row['money'])
        # 总大
        self.base_driver.type(self.config_dict_marksix['ZONGDA'], row['money'])
        # 总小
        self.base_driver.type(self.config_dict_marksix['ZONGXIAO'], row['money'])
        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def sevenyards_qm(self, row):
        # 点击七码五行
        self.base_driver.click(self.config_dict_marksix['SEVENYARDS'])
        # 点击 七码
        self.base_driver.click(self.config_dict_marksix['SEVENY'])
        print('进入七码五行---七码')
        self.base_driver.forced_wait(1)
        # 单0双7
        self.base_driver.type(self.config_dict_marksix['DS07'], row['money'])
        # 单1双6
        self.base_driver.type(self.config_dict_marksix['DS16'], row['money'])
        # 单2双5
        self.base_driver.type(self.config_dict_marksix['DS25'], row['money'])
        # 单3双4
        self.base_driver.type(self.config_dict_marksix['DS34'], row['money'])
        # 单4双3
        self.base_driver.type(self.config_dict_marksix['DS43'], row['money'])
        # 单5双2
        self.base_driver.type(self.config_dict_marksix['DS52'], row['money'])
        # 单6双1
        self.base_driver.type(self.config_dict_marksix['DS61'], row['money'])
        # 单7双0
        self.base_driver.type(self.config_dict_marksix['DS70'], row['money'])

        # 单0双7
        self.base_driver.type(self.config_dict_marksix['DX07'], row['money'])
        # 单1双6
        self.base_driver.type(self.config_dict_marksix['DX16'], row['money'])
        # 单2双5
        self.base_driver.type(self.config_dict_marksix['DX25'], row['money'])
        # 单3双4
        self.base_driver.type(self.config_dict_marksix['DX34'], row['money'])
        # 单4双3
        self.base_driver.type(self.config_dict_marksix['DX43'], row['money'])
        # 单5双2
        self.base_driver.type(self.config_dict_marksix['DX52'], row['money'])
        # 单6双1
        self.base_driver.type(self.config_dict_marksix['DX61'], row['money'])
        # 单7双0
        self.base_driver.type(self.config_dict_marksix['DX70'], row['money'])
        self.base_driver.forced_wait(1)

    def sevenyards_wx(self, row):
        # 点击七码五行
        self.base_driver.click(self.config_dict_marksix['SEVENYARDS'])
        # 点击 五行
        self.base_driver.click(self.config_dict_marksix['FIVEPATH'])
        # 金
        self.base_driver.type(self.config_dict_marksix['JIN'], row['money'])
        # 木
        self.base_driver.type(self.config_dict_marksix['MU'], row['money'])
        # 水
        self.base_driver.type(self.config_dict_marksix['SHUI'], row['money'])
        # 火
        self.base_driver.type(self.config_dict_marksix['HUO'], row['money'])
        # 土
        self.base_driver.type(self.config_dict_marksix['TU'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def tailnum_htnum(self, row):
        # 尾数----头尾数字
        self.base_driver.click(self.config_dict_marksix['TAILNUM'])
        # 点击 头尾数
        self.base_driver.click(self.config_dict_marksix['HTNUM'])
        # 头0,1,2,3,4
        self.base_driver.type(self.config_dict_marksix['H0'], row['money'])
        self.base_driver.type(self.config_dict_marksix['H1'], row['money'])
        self.base_driver.type(self.config_dict_marksix['H2'], row['money'])
        self.base_driver.type(self.config_dict_marksix['H3'], row['money'])
        self.base_driver.type(self.config_dict_marksix['H4'], row['money'])
        # 为0,1,2,3,4,5,6,7,8,9
        self.base_driver.type(self.config_dict_marksix['T0'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T1'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T2'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T3'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T4'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T5'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T6'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T7'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T8'], row['money'])
        self.base_driver.type(self.config_dict_marksix['T9'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def tailnum_potnum(self, row):
        # 尾数----正特尾数
        self.base_driver.click(self.config_dict_marksix['TAILNUM'])
        # 点击 正特数
        self.base_driver.click(self.config_dict_marksix['POTNUM'])
        # 为0,1,2,3,4,5,6,7,8,9
        self.base_driver.type(self.config_dict_marksix['PT0'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT1'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT2'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT3'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT4'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT5'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT6'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT7'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT8'], row['money'])
        self.base_driver.type(self.config_dict_marksix['PT9'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def sebo_3(self, row):
        # 色波---三色波
        self.base_driver.click(self.config_dict_marksix['SEBO'])
        # 色波---三色波
        self.base_driver.click(self.config_dict_marksix['SEBO3'])
        # 色波---三色波---红波
        self.base_driver.type(self.config_dict_marksix['SEBO3R'], row['money'])
        # 色波---三色波---蓝波
        self.base_driver.type(self.config_dict_marksix['SEBO3B'], row['money'])
        # 色波---三色波---绿波
        self.base_driver.type(self.config_dict_marksix['SEBO3G'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def sebo_h(self, row):
        # 色波---半波
        self.base_driver.click(self.config_dict_marksix['SEBO'])
        # 色波---半波
        self.base_driver.click(self.config_dict_marksix['SEBOH'])
        # 色波---半波---红单
        self.base_driver.type(self.config_dict_marksix['SEBOHRDAN'], row['money'])
        # 色波---半波---红双
        self.base_driver.type(self.config_dict_marksix['SEBOHRSHU'], row['money'])
        # 色波---半波---红大
        self.base_driver.type(self.config_dict_marksix['SEBOHRDA'], row['money'])
        # 色波---半波---红小
        self.base_driver.type(self.config_dict_marksix['SEBOHRXIAO'], row['money'])

        # 色波---半波---绿单
        self.base_driver.type(self.config_dict_marksix['SEBOHGDAN'], row['money'])
        # 色波---半波---绿双
        self.base_driver.type(self.config_dict_marksix['SEBOHGSHU'], row['money'])
        # 色波---半波---绿大
        self.base_driver.type(self.config_dict_marksix['SEBOHGDA'], row['money'])
        # 色波---半波---绿小
        self.base_driver.type(self.config_dict_marksix['SEBOHGXIAO'], row['money'])

        # 色波---半波---蓝单
        self.base_driver.type(self.config_dict_marksix['SEBOHBDAN'], row['money'])
        # 色波---半波---蓝双
        self.base_driver.type(self.config_dict_marksix['SEBOHBSHU'], row['money'])
        # 色波---半波---蓝大
        self.base_driver.type(self.config_dict_marksix['SEBOHBDA'], row['money'])
        # 色波---半波---蓝小
        self.base_driver.type(self.config_dict_marksix['SEBOHBXIAO'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def sebo_hh(self, row):
        # 色波---半半波
        self.base_driver.click(self.config_dict_marksix['SEBO'])
        # 色波---半半波
        self.base_driver.click(self.config_dict_marksix['SEBOHH'])
        # 色波---半半波---红大单
        self.base_driver.type(self.config_dict_marksix['SEBOHHRDAN'], row['money'])
        # 色波---半半波---红大双
        self.base_driver.type(self.config_dict_marksix['SEBOHHRSHU'], row['money'])
        # 色波---半半波---红小单
        self.base_driver.type(self.config_dict_marksix['SEBOHHRXDAN'], row['money'])
        # 色波---半半波---红小双
        self.base_driver.type(self.config_dict_marksix['SEBOHHRXIAO'], row['money'])

        # 色波---半半波---绿大单
        self.base_driver.type(self.config_dict_marksix['SEBOHHGDAN'], row['money'])
        # 色波---半半波---绿大双
        self.base_driver.type(self.config_dict_marksix['SEBOHHGSHU'], row['money'])
        # 色波---半半波---绿小单
        self.base_driver.type(self.config_dict_marksix['SEBOHHGXDAN'], row['money'])
        # 色波---半半波---绿小双
        self.base_driver.type(self.config_dict_marksix['SEBOHHGXIAO'], row['money'])

        # 色波---半半波---蓝大单
        self.base_driver.type(self.config_dict_marksix['SEBOHHBDAN'], row['money'])
        # 色波---半半波---蓝大双
        self.base_driver.type(self.config_dict_marksix['SEBOHHBSHU'], row['money'])
        # 色波---半半波---蓝小单
        self.base_driver.type(self.config_dict_marksix['SEBOHHBXDAN'], row['money'])
        # 色波---半半波---蓝小双
        self.base_driver.type(self.config_dict_marksix['SEBOHHBXIAO'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def sebo_7(self, row):
        # 色波---七色波
        self.base_driver.click(self.config_dict_marksix['SEBO'])
        # 色波---七色波
        self.base_driver.click(self.config_dict_marksix['SEBO37'])
        # 色波---七色波---红波
        self.base_driver.type(self.config_dict_marksix['SEBO37R'], row['money'])
        # 色波---七色波---蓝波
        self.base_driver.type(self.config_dict_marksix['SEBO37B'], row['money'])
        # 色波---七色波---绿波
        self.base_driver.type(self.config_dict_marksix['SEBO37G'], row['money'])
        # 色波---七色波---和局
        self.base_driver.type(self.config_dict_marksix['SEBO37H'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)

    def hexiao_1(self, row):
        # 合肖
        self.base_driver.click(self.config_dict_marksix['HEXIAO'])
        # 合肖---家禽
        self.base_driver.click(self.config_dict_marksix['YESHOU'])
        self.base_driver.click(self.config_dict_marksix['ADDNOTE'])
        self.base_driver.forced_wait(0.1)
        # 色波---七色波---红波
        self.base_driver.type(self.config_dict_marksix['SEBO37R'], row['money'])
        # 色波---七色波---蓝波
        self.base_driver.type(self.config_dict_marksix['SEBO37B'], row['money'])
        # 色波---七色波---绿波
        self.base_driver.type(self.config_dict_marksix['SEBO37G'], row['money'])
        # 色波---七色波---和局
        self.base_driver.type(self.config_dict_marksix['SEBO37H'], row['money'])

        print('下注金额为:' + row['money'])
        self.base_driver.forced_wait(1)













































    def addnote_button(self):
        # 点击添加注单按钮
        self.base_driver.click(self.config_dict_marksix['ADDNOTE'])
        print('点击添加注单按钮')
        self.base_driver.forced_wait(5)

    def radoms(self):
        # 随机一注
        self.base_driver.click(self.config_dict_marksix['RANDOM1'])
        print('随机1注')
        self.base_driver.forced_wait(1)
        # 随机5注
        self.base_driver.click(self.config_dict_marksix['RANDOM5'])
        # 全部删除':
        # self.base_driver.click(self.config_dict_marksix['ALLDELETE'])
        self.base_driver.forced_wait(1)
        print('随机5注')

    def surebet(self):
        # 确认投注按钮
        surebet = self.base_driver.click(self.config_dict_marksix['SUREBET'])
        print('点击确认投注')
        self.base_driver.forced_wait(3)
        return surebet

    def get_tips(self):
        tips = self.base_driver.get_text(self.config_dict_marksix['TIPS'])
        print('捕捉到的信息是:' + tips)
        return tips

    def get_tips01(self):
        # 提示请先添加投注内容
        tips = self.base_driver.get_text(self.config_dict_marksix['TIPS01'])
        print('捕捉到的信息是:' + tips)
        return tips

    def get_tips02(self):
        # 提示下注成功
        tips = self.base_driver.get_text(self.config_dict_marksix['TIPS02'])
        print('捕捉到的信息是:' + tips)
        return tips
Ejemplo n.º 18
0
class CommonRecharge(BasePage):
    # 充值公共页面
    # 导入fusion文件中CommonRecharge
    config_dict_commonre = YamlHelper().get_config_dict('/fusion/yaml/fusion.yaml')['CommonRecharge']

    def login01(self, row):
        print('开始进入登陆--会员中心--充值')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], row['username'])
        print(row['username'])
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], row['password'])
        print(row['password'])
        self.base_driver.type(self.config_dict_commonre['YZM'], row['yzm'])
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(2)
        print('充值等待')

        # 点击会员中心
        self.base_driver.click(self.config_dict_commonre['PERCENTER'])
        self.base_driver.forced_wait(1)
        self.base_driver.switch_to_window_by_index(2)

        print("会员")
        self.base_driver.forced_wait(5)

        # 跳转会员中心,fusion后台标签定位
        self.base_driver.click(self.config_dict_commonre['FUSIONBACK'])
        self.base_driver.forced_wait(1)
        #  点击财务中心
        self.base_driver.click(self.config_dict_commonre['FINANCIAL'])
        self.base_driver.forced_wait(5)
        print('点击财务中心')
        # # 点击充值
        self.base_driver.click(self.config_dict_commonre['RECHARGE'])
        self.base_driver.forced_wait(2)
        print('充值入款')

    def login02(self, row):
        print('开始进入登陆---直接点击充值')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], row['username'])
        print(row['username'])
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], row['password'])
        print(row['password'])
        self.base_driver.type(self.config_dict_commonre['YZM'], row['yzm'])
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(2)
        print('点击充值等待')

        # 点击会员中心
        self.base_driver.click(self.config_dict_commonre['PERCENTER'])
        self.base_driver.forced_wait(1)
        self.base_driver.switch_to_window_by_index(2)

        print("会员")
        self.base_driver.forced_wait(5)

        # 跳转会员中心,fusion后台标签定位
        self.base_driver.click(self.config_dict_commonre['FUSIONBACK'])
        self.base_driver.forced_wait(1)
        #  点击财务中心
        self.base_driver.click(self.config_dict_commonre['FINANCIAL'])
        self.base_driver.forced_wait(5)
        print('点击财务中心')
        # # 点击充值
        self.base_driver.click(self.config_dict_commonre['RECHARGE'])
        self.base_driver.forced_wait(2)
        print('充值入款')

    def login03(self):
        print('开始进入登陆---直接点击充值')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], 'lee123456789')
        print('输入的用户名是:lee6281376')
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], 'lee123')
        print('输入的密  码是:lee123')
        self.base_driver.type(self.config_dict_commonre['YZM'], '1')
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(3)
        print('登陆等待')
      # 点击充值文字
        self.base_driver.click(self.config_dict_commonre['CHONGZHI'])
        self.base_driver.switch_to_window_by_index(2)
        self.base_driver.forced_wait(5)
        print('跳转充值页面')

    def login031(self):
        print('开始进入登陆---直接点击充值')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], 'lee123456789')
        print('输入的用户名是:lee6281376')
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], 'lee123')
        print('输入的密  码是:lee123')
        self.base_driver.type(self.config_dict_commonre['YZM'], '1')
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(3)
        print('登陆等待')

        # 点击充值文字
        self.base_driver.click(self.config_dict_commonre['CHONGZHI'])
        self.base_driver.switch_to_window_by_index(2)
        self.base_driver.forced_wait(5)
        print('跳转充值页面')

    def login032(self):

        print('开始进入登陆---直接点击会员中心')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], 'lee123456789')
        print('输入的用户名是:lee123456789')
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], 'lee123')
        print('输入的密  码是:lee123')
        self.base_driver.type(self.config_dict_commonre['YZM'], '1')
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(4)
        print('登陆等待')

        # 点击会员中心文字
        self.base_driver.click(self.config_dict_commonre['PERCENTER'])
        self.base_driver.switch_to_window_by_index(2)
        self.base_driver.forced_wait(5)
        print('跳转登陆页面')

    def login04(self):
        print('开始进入登陆---直接点击提现')
        # 登陆

        self.base_driver.type(self.config_dict_commonre['USERNAME'], 'lee1000000')
        print(['username'])
        self.base_driver.type(self.config_dict_commonre['PASSWORD'], 'lee123')
        print(['password'])
        self.base_driver.type(self.config_dict_commonre['YZM'], '1')
        self.base_driver.click(self.config_dict_commonre['LOGINBUTTON'])
        self.base_driver.forced_wait(2)
        print('提现等待')

        # 点击提现文字
        self.base_driver.click(self.config_dict_commonre['TIXIANWENZI'])
        self.base_driver.switch_to_window_by_index(2)
        self.base_driver.forced_wait(5)
        print('跳转提现页面')

    def hyzx_cwzx_idem_rk(self, row):
        # 充值入款方式
        if row['pymethod'] == 'SUSU公司入款':
            self.base_driver.click(self.config_dict_commonre['SUSURECHARGE'])
        if row['pymethod'] == '支付宝转账':
            self.base_driver.click(self.config_dict_commonre['ALIPAY'])
        if row['pymethod'] == '公司入款':
            self.base_driver.click(self.config_dict_commonre['COMPANYDEPOSIT'])
        if row['pymethod'] == 'VIP代理充值':
            self.base_driver.click(self.config_dict_commonre['VIPAGENT'])
        print("选择充值入款方式")
        self.base_driver.forced_wait(1)

    def cwbutton(self):
        # 下一步按钮
        cwb = self.base_driver.click(self.config_dict_commonre['CONETBUTTON'])
        print('进入充值页面')
        return cwb