Skip to content

Commit

Permalink
Change from Keys.RETURN to Keys.ENTER.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasThoren committed Aug 31, 2016
1 parent db54556 commit 7719158
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions realestate/lib/scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

# Uncomment for local development and testing:
# from selenium.webdriver.common.desired_capabilities import (
# DesiredCapabilities)
# DesiredCapabilities)


class Scrape(object):
Expand Down Expand Up @@ -94,7 +94,9 @@ def enter_password(self):
password_elem.send_keys(os.environ.get('REAL_ESTATE_LRD_PASSWORD'))

log.info('Return')
password_elem.send_keys(Keys.RETURN) # To trigger search function

# Trigger search function. Don't use RETURN because PhantomJS fails.
password_elem.send_keys(Keys.ENTER)

log.debug(self.driver.title)

Expand Down

0 comments on commit 7719158

Please sign in to comment.