Skip to content

Commit

Permalink
WebDriver window size must be large enough to display all clickable c…
Browse files Browse the repository at this point in the history
…omponents
  • Loading branch information
ssenart committed Aug 31, 2019
1 parent ae23990 commit 9355d6c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.1.9] - 2019-08-31
### Fixed
- WebDriver window size must be large enough to display all clickable components.

## [0.1.8] - 2019-08-31
### Changed
- Use PropertyNameEnum type to store all property names.
Expand All @@ -24,7 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Removed
- Remove Client.data property to get the updated data. Replaced with Client.__data private property.

[Unreleased]: https://github.com/ssenart/PyGazpar/compare/0.1.8...HEAD
[Unreleased]: https://github.com/ssenart/PyGazpar/compare/0.1.9...HEAD
[0.1.9]: https://github.com/ssenart/PyGazpar/compare/0.1.7...0.1.9
[0.1.8]: https://github.com/ssenart/PyGazpar/compare/0.1.7...0.1.8
[0.1.7]: https://github.com/ssenart/PyGazpar/compare/0.1.6...0.1.7
[0.1.6]: https://github.com/ssenart/PyGazpar/compare/0.1.5...0.1.6
5 changes: 4 additions & 1 deletion pygazpar/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ def update(self):

driver = webdriver.Firefox(executable_path=self.__firefox_webdriver_executable, firefox_profile=profile, options=options, service_log_path=self.__tmp_directory + '/geckodriver.log')
try:
driver.set_window_position(0, 0)
driver.set_window_size(1200, 1200)

driver.implicitly_wait(self.__wait_time)

## Login URL
Expand Down Expand Up @@ -112,7 +115,7 @@ def update(self):
data_timestamp = datetime.now().isoformat()

# Wait a few for the download to complete
time.sleep(5)
time.sleep(10)

# Load the XLSX file into the data structure
file_list = glob.glob(data_file_path_pattern)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name = 'pygazpar',
version = '0.1.8',
version = '0.1.9',
author = 'Stephane Senart',
author_email = 'stephane.senart@gmail.com',
description = 'Retrieve gas consumption from GrDF web site (French Gas Company)',
Expand All @@ -23,7 +23,7 @@
'Programming Language :: Python :: 3.7',
],
python_requires='>=3.7',
download_url = 'https://github.com/ssenart/pygazpar/releases/tag/0.1.8',
download_url = 'https://github.com/ssenart/pygazpar/releases/tag/0.1.9',
keywords = ['ENERGY', 'NATURAL GAS', 'CONSUMPTION'], # Keywords that define your package best
entry_points={
'console_scripts': [
Expand Down

0 comments on commit 9355d6c

Please sign in to comment.