Skip to content

Commit

Permalink
Merge pull request #120 from jacebrowning/release-0.11
Browse files Browse the repository at this point in the history
Bump version to 0.11
  • Loading branch information
jacebrowning authored Aug 14, 2022
2 parents f084a28 + 04bed87 commit 791356f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.11 (unreleased)
# 0.11 (2022-08-14)

- Updated automatic locators to try partial text match.
- Added a better error message for when a URL is unreachable.
Expand Down
5 changes: 4 additions & 1 deletion pomace/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ def url(self) -> str:
return ""

if isinstance(browser, PlaywrightBrowser):
self.page.bring_to_front()
try:
self.page.bring_to_front()
except IndexError:
return ""
return self.page.url

return browser.url
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]

name = "pomace"
version = "0.10.11"
version = "0.11"
description = "Dynamic page objects for browser automation."

license = "MIT"
Expand Down

0 comments on commit 791356f

Please sign in to comment.