Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
simplified DuckDuckGoResultPage.SEARCH_INPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyLPK247 committed Jun 4, 2019
1 parent 548f065 commit 300f350
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pages/result.py
Expand Up @@ -9,8 +9,6 @@


class DuckDuckGoResultPage:
SEARCH_INPUT = DuckDuckGoSearchPage.SEARCH_INPUT

LINK_DIVS = (By.CSS_SELECTOR, '#links > div')

@classmethod
Expand All @@ -30,5 +28,5 @@ def phrase_result_count(self, phrase):
return len(phrase_results)

def search_input_value(self):
search_input = self.browser.find_element(*self.SEARCH_INPUT)
search_input = self.browser.find_element(*DuckDuckGoSearchPage.SEARCH_INPUT)
return search_input.get_attribute('value')

0 comments on commit 300f350

Please sign in to comment.