Пример #1
0
def test_one3333(driver_manager):
        page = StartPage()
        page.open()
        page.category.click()
        subcategory = SubCategory()
        subcategory.subcategory.click()
        price = Price()
        # price.price(400, 500)
        _sort = Sort()
        _sort.sort1()
        # _sort.sort.click()
        # _sort.subsort.click()
        _result = Result()
        _result.prices()
Пример #2
0
 def test_one245443(self):
     page = StartPage()
     page.open()
     page.category.click()
     subcategory = SubCategory()
     subcategory.subcategory.click()
     price = Price()
     #price.price(400, 500)
     _sort = Sort()
     _sort.sort1()
     #_sort.sort.click()
     #_sort.subsort.click()
     _result = Result()
     _result.prices()
Пример #3
0
 def _returnInstance(self):
     if "/feed/" in self.driver.current_url:
         print("URL: ", self.driver.current_url)
         print("Returning home instance")
         return Home()
     elif "/in/" in self.driver.current_url:
         print("URL: ", self.driver.current_url)
         print("Returning profile instance")
         return Profile()
     elif "/mynetwork/" or "/mynetwork/invite-sent/" or  "/search/results/" in self.driver.current_url:
         print("URL: ", self.driver.current_url)
         print("Returning network instance")
         return Network()
     elif "/search/results/" in self.driver.current_url:
         print("URL: ", self.driver.current_url)
         print("Returning result instance")
         return Result()
Пример #4
0
    def searchUser(self, value):

        inputFields = self.driver.find_elements(*self._INPUTS)
        self._sendKeys(inputFields[0], value)

        return Result()