Esempio n. 1
0
 def test_gender_check_Men(self):
     driver = Driver()
     callapi = user_API()
     Swipe = SwipePage(driver.driver)
     Filter = FilterPage(driver.driver)
     Swipe.gotofilter()
     Filter.filter()
     Filter.tapmen()
     Filter.save()
     Swipe.filtersaved()
     Swipe.scroll_down_to_block_or_report()
     Swipe.report_abuse()
     user_id = Swipe.find_ID()
     print(user_id)
     resp = callapi.get_users_gender("118304", user_id[1:])
     print(resp)
     assert resp == "Male"
Esempio n. 2
0
    def test_filter_location(self):
        driver = Driver()
        Swipe = SwipePage(driver.driver)
        Filter = FilterPage(driver.driver)
        Location = LocationPage(driver.driver)

        Swipe.gotofilter()
        Filter.filter()
        try:
            Filter.taplocation()
            Location.writelocation("Berlin")
            Location.chooselocation("Berlin")
            Filter.save()
            Swipe.filtersaved()
            Swipe.scroll_down_to_location()
            location = Swipe.location_text().split(sep=",")[0]

            if location == "Berlin":
                print("Yohoo")
            del driver
        except:
            print("user is NON PRIME")