Skip to content

Commit

Permalink
Update page-objects.rst
Browse files Browse the repository at this point in the history
changed __set__ function so that search entry is cleared prior to setting value
currently, the __set__ function appends the text to the search entry, which has a default value of "Search"
  • Loading branch information
alvinthai authored and baijum committed Jan 2, 2018
1 parent 4384b03 commit 7a50324
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/page-objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ The ``element.py`` will look like this::
driver = obj.driver
WebDriverWait(driver, 100).until(
lambda driver: driver.find_element_by_name(self.locator))
driver.find_element_by_name(self.locator).clear()
driver.find_element_by_name(self.locator).send_keys(value)

def __get__(self, obj, owner):
Expand Down

0 comments on commit 7a50324

Please sign in to comment.