예제 #1
0
 def test_TC_Main_06_Navigate_to_WithdrawalHelp(self):
     print(
         "<b> Expected Results: Able to access to Withdrawal Help without breaking. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on Withdrawal Help" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.withdrawal_help_link).click()
     # Wait page loads
     wait_page_load = EC.presence_of_element_located(
         (By.XPATH, MainpageElement.bottom_link_title))
     WebDriverWait(self.driver, 20).until(wait_page_load)
     link_title = self.driver.find_element_by_xpath(
         MainpageElement.bottom_link_title).is_displayed()
     self.assertTrue(link_title,
                     "User is not able to access to Withdrawal Help.")
예제 #2
0
 def test_TC_Main_03_Navigate_to_MobileBetting(self):
     print(
         "<b> Expected Results: Able to access to Mobile Betting without breaking. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on Mobile Betting" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.mobile_betting_link).click()
     # Wait page loads
     wait_page_load = EC.visibility_of_element_located(
         (By.CLASS_NAME, MainpageElement.mobile_betting_qr))
     WebDriverWait(self.driver, 20).until(wait_page_load)
     mobile_betting_qr = self.driver.find_element_by_class_name(
         MainpageElement.mobile_betting_qr).is_displayed()
     self.assertTrue(mobile_betting_qr,
                     "User is not able to access to Mobile Betting.")
예제 #3
0
 def test_TC_Main_09_Access_to_FAQDetails(self):
     print("<b> Expected Results: Able to access to FAQ details. </b>" +
           "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on About Us" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.about_us_link).click()
     print("<li>" + "Click on FAQ from the side bar" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(MainpageElement.faq_button).click()
     # Wait page loads
     wait_page_load = EC.presence_of_element_located(
         (By.XPATH, MainpageElement.faq_details))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     faq_details = self.driver.find_element_by_xpath(
         MainpageElement.faq_details).text
     self.assertNotEqual(faq_details, "", "Unable to read FAQ Details")
예제 #4
0
 def test_TC_Main_02_Navigate_to_AboutUs(self):
     print(
         "<b> Expected Results: Able to access to About Us without breaking. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on About Us" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.about_us_link).click()
     # Wait page loads
     wait_page_load = EC.presence_of_element_located(
         (By.XPATH, MainpageElement.bottom_link_title))
     WebDriverWait(self.driver, 20).until(wait_page_load)
     # assert self.driver.find_element_by_css_selector(MainpageElement.bottom_link_title).text == "本地化".decode().encode('utf-8')
     link_title = self.driver.find_element_by_xpath(
         MainpageElement.bottom_link_title).is_displayed()
     # about_us = "关于我们".decode('utf-8')
     self.assertTrue(link_title, "User is not able to access to About Us.")
예제 #5
0
 def test_TC_Main_11_Access_to_BasicTermsDetails(self):
     print(
         "<b> Expected Results: Able to access to Basic Terms details. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on About Us" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.about_us_link).click()
     print("<li>" + "Click on Basic Terms from the side bar" + "</li>" +
           "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.basic_term_button).click()
     # Wait page loads
     wait_page_load = EC.presence_of_element_located(
         (By.XPATH, MainpageElement.basic_term_details))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     basicterms_details = self.driver.find_element_by_xpath(
         MainpageElement.basic_term_details).text
     self.assertNotEqual(basicterms_details, "",
                         "Unable to read Login and Registration Details")
예제 #6
0
 def test_TC_Main_17_Access_to_WithdrawalCommonQuestionDetails(self):
     print(
         "<b> Expected Results: Able to access to Withdrawal Common Question details. </b>"
         + "<br>")
     MainpageActions.Access_to_Mainpage(self)
     MainpageActions.Scroll_to_Main_Page_Bottom(self)
     print("<li>" + "Click on About Us" + "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.about_us_link).click()
     print("<li>" + "Click on Withdrawal Process from the side bar" +
           "</li>" + "<br>")
     self.driver.find_element_by_xpath(
         MainpageElement.withdrawal_process_button).click()
     # Wait page loads
     wait_page_load = EC.presence_of_element_located(
         (By.XPATH, MainpageElement.withdrawal_process_details))
     WebDriverWait(self.driver, 10).until(wait_page_load)
     alipay_details = self.driver.find_element_by_xpath(
         MainpageElement.withdrawal_process_details).text
     self.assertNotEqual(
         alipay_details, "",
         "Unable to read Withdrawal Common Question Details")