Beispiel #1
0
 def test_options10_hand_choose11_11_case(self):
     '''广东11选5,前二直选玩法,前两位各选11个号码流程测试'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.gd_11_5_link()  # 点击广东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(23, 9)  # 广东11选5前二直选
     efcn.hand_options(11)  #第一位选取11个号码
     efcn.second_num_choose(11)  #第二位选取11个号码
     efcn.confirm_number_button()  # 点击确认选号
Beispiel #2
0
 def test_option12_hand_choose1_1_1_case(self):
     '''山东11选5,前三直选玩法,前三位各选一个号码测试流程'''
     hp = HomePage_leyou(self.driver)
     hp.open()
     ulcn = UnionLottoChooseNumber_leyou(self.driver)
     ######判断是否出现浮层弹框,如果出现浮层点击X,然后执行下一步操作
     hp.Moveable_float_close()
     hp.sd_11_5_link()  # 点击山东11选5链接
     efcn = ElevenFiveChooseNumber_leyou(self.driver)
     efcn.countdown_text()  # 检查“距离第xxx期截止:”文案是否存在
     efcn.spread_mode_button()  ##选择展开玩法
     efcn.mode_choose(22, 11)  # 广西11选5前三直选
     efcn.hand_options(1)  # 第一位选取1个号码
     efcn.second_num_choose(1)  # 第二位选取1个号码
     efcn.third_num_choose(1)#第三位选取1个号码
     efcn.confirm_number_button()  # 点击确认选号