Skip to content

Commit

Permalink
The Veolia login email text box has changed its identifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssenart committed Oct 12, 2020
1 parent 64e133d commit 211b555
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.1.12] - 2020-10-12
### Fixed
- The Veolia login email text box has changed its identifier.

## [0.1.11] - 2020-10-03
### Fixed
- After simulating clicks on the 'Jours' and 'Litres' buttons, we have to wait a few (5 seconds) for internal form refresh. Otherwise, we got an inconsistent data file.
Expand All @@ -22,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Add LoginError exception raised when PyVeoliaIDF is unable to sign in the Veolia Web site with the given username/password.
- Add timestamp property that contains date/time when the data has been retrieved.

[0.1.12]: https://github.com/ssenart/PyVeoliaIDF/compare/0.1.11...0.1.12
[0.1.11]: https://github.com/ssenart/PyVeoliaIDF/compare/0.1.10...0.1.11
[0.1.10]: https://github.com/ssenart/PyVeoliaIDF/compare/0.1.9...0.1.10
[0.1.9]: https://github.com/ssenart/PyVeoliaIDF/compare/0.1.8...0.1.9
Expand Down
4 changes: 2 additions & 2 deletions pyveoliaidf/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def update(self):
driver.get(HOME_URL)

# Fill login form
email_element = driver.find_element_by_css_selector("input[type='email']")
email_element = driver.find_element_by_css_selector("input[inputmode='email']")
password_element = driver.find_element_by_css_selector("input[type='password']")

email_element.send_keys(self.__username)
Expand Down Expand Up @@ -102,7 +102,7 @@ def update(self):
litres_button_element.click()

# Wait a few for some internal refreshes after the 2 button clicks above.
time.sleep(5)
time.sleep(10)

# Download file
download_button_element = driver.find_element_by_xpath("//button[contains(.,'Télécharger la période')]")
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name = 'pyveoliaidf',
version = '0.1.11',
version = '0.1.12',
author = 'Stephane Senart',
author_email = 'stephane.senart@gmail.com',
description = 'Retrieve water consumption from Veolia Ile-de-France web site (French Water Company)',
Expand All @@ -21,7 +21,7 @@
'Programming Language :: Python :: 3.7',
],
python_requires='>=3.7',
download_url = 'https://github.com/ssenart/pyveoliaidf/releases/tag/0.1.11',
download_url = 'https://github.com/ssenart/pyveoliaidf/releases/tag/0.1.12',
keywords = ['Resource', 'Water', 'Consumption', 'Veolia', 'Ile-de-France'],
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 211b555

Please sign in to comment.