Ejemplo n.º 1
0
 def wbgMmcBetting(self):
     self.open_url(self.base_url)
     self.choiceNumber()
     lot1=Lottery(self.driver)
     lot1.click_quickSubmint_btn()
     self.click_ok_btn()
     time.sleep(1)
     self.input_loop()
     self.click_ok_btn()
     self.waitMoretimesBtnToBeVisable()
Ejemplo n.º 2
0
 def lotteryDraw(self):
     lot1 = Lottery(self.driver)
     lot1.choiceAll(9)
     lot1.click_aaNumber_btn()
     lot1.click_submit_now_btn()
     time.sleep(0.5)
     self.click_ok_btn()
     lot1.wait_alertToBeVisble()
     time.sleep(2)
     self.waitToLotteryDraw()
Ejemplo n.º 3
0
    def traceIcon(self):
        lot1=Lottery(self.driver)
        lot1.choiceNumer(20)
        lot1.click_aaNumber_btn()
        lot1.click_ok_btn()

        self.click_toAddNumber_btn()
        self.input_initTotals()
        self.click_lgenTrace_btn()
        self.click_traceSubmit_btn()
        self.click_ok_btn()
        self.waitTraceToVisble()
Ejemplo n.º 4
0
    def test_wbgMmcBetting(self):
        '''WBG秒秒彩-后三-复式'''
        login1 = LoginPage(self.driver)
        login1.login()

        wbg = WBGMmc(self.driver)
        wbg.wbgMmcBetting()
        wbg.click_cancel_btn()

        lot1 = Lottery(self.driver)
        lot1.click_theNewestTime()
        bid1 = lot1.get_bettingId()

        bet1 = Bet(self.driver)
        wbg.open_url(wbg.base_url + bet1.url_cpBetting)
        bet1.click_theFirstTime()
        bid2 = lot1.get_bettingId()
        logger.info("\n下注注单号: %s \n生成订单号: %s" % (bid1, bid2))
        assert (bid1 == bid2)
Ejemplo n.º 5
0
    def check_teamReport(self):
        self.goto_teamReport()
        data1 = self.get_teamBettingData()
        self.open_url(self.base_url)

        lot1 = Lottery(self.driver)
        lot1.choiceNumer(9)
        lot1.click_aaNumber_btn()
        self.click_ok_btn()
        time.sleep(1)
        betM = lot1.get_betMoney()
        logger.info("投注金额:%s" % betM)
        lot1.click_submit_now_btn()
        time.sleep(0.5)
        self.click_ok_btn()
        lot1.wait_alertToBeVisble()
        time.sleep(2)

        ld1 = LotteryDraw(self.driver)
        ld1.waitToLotteryDraw()
        time.sleep(20)

        self.goto_teamReport()
        data2 = self.get_teamBettingData()
        logger.info("投注前数据: %s 投注后数据: %s" % (data1, data2))
        try:
            assert (Decimal(data2) == Decimal(data1) + Decimal(betM))
        except:
            self.get_screenshot()
            assert (Decimal(data2) == Decimal(data1) + Decimal(betM))
Ejemplo n.º 6
0
 def orderCancel(self):
     lot1 = Lottery(self.driver)
     lot1.choiceNumer(25)
     lot1.click_aaNumber_btn()
     lot1.click_ok_btn()
     lot1.click_submit_now_btn()
     time.sleep(0.5)
     self.click_ok_btn()
     lot1.wait_alertToBeVisble()
     time.sleep(3)
     self.click_orerCancel_btn()
     time.sleep(1)
     lot1.click_ok_btn()
     self.wait_ocalertToBeVisble()