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()
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()
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()
def searchUser(self, value): inputFields = self.driver.find_elements(*self._INPUTS) self._sendKeys(inputFields[0], value) return Result()