Skip to content

Commit

Permalink
see version 5.0.4 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Svinokur committed Aug 27, 2021
1 parent 7a97d3a commit f770b38
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[5.0.4] 27/08/2021
This code was written and tested on Python 3.9.6

# Fixes

- Partial fixed of getting latest version of edge browser

[5.0.3] 17/08/2021
This code was written and tested on Python 3.9.6

Expand Down
2 changes: 1 addition & 1 deletion selenium_driver_updater/_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@

@dataclass
class info:
version = "5.0.3"
version = "5.0.4"

setting = dict(
{
Expand Down
11 changes: 2 additions & 9 deletions selenium_driver_updater/browsers/_edgeBrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,19 @@ def _get_current_version_edge_browser_selenium(self) -> str:
def _get_latest_version_edge_browser(self) -> str:
"""Gets latest edge browser version
Returns:
str
latest_version (str) : Latest version of edge browser.
Raises:
Except: If unexpected error raised.
"""

latest_version : str = ''

url = self.setting["EdgeBrowser"]["LinkAllLatestRelease"]
url = self.setting['EdgeDriver']["LinkLastRelease"]
json_data = self.requests_getter.get_result_by_request(url=url)

soup = BeautifulSoup(json_data, 'html.parser')
latest_version_element = soup.findAll('h2')[0].text

latest_version = re.findall(self.setting["Program"]["wedriverVersionPattern"], latest_version_element)[0]
latest_version = str(json_data).strip()

logger.info(f'Latest version of edge browser: {latest_version}')

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

setup(
name='selenium_driver_updater',
version='5.0.3',
version='5.0.4',
description='Download or update your Selenium driver binaries and their browsers automatically with this package',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down

0 comments on commit f770b38

Please sign in to comment.