pomcorn 0.7.2__tar.gz → 0.7.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pomcorn might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pomcorn
3
- Version: 0.7.2
3
+ Version: 0.7.3
4
4
  Summary: Base implementation of Page Object Model
5
5
  Home-page: https://pypi.org/project/pomcorn/
6
6
  License: MIT
@@ -103,12 +103,18 @@ class Page(WebView):
103
103
  path: Relative URL.
104
104
 
105
105
  """
106
- app_root = app_root or cls.APP_ROOT
106
+ # hack to not specify app_root in each page init method
107
+ if app_root:
108
+ kwargs["app_root"] = app_root
109
+
107
110
  # We don't use `page.navigate_relative` here because we need to
108
111
  # navigate to relative url before page is initialized, since otherwise
109
112
  # `wait_until_loaded` method in page `__init__` method might fail.
110
- webdriver.get(cls._get_full_relative_url(app_root, path))
111
- page = cls(webdriver, app_root=app_root, **kwargs)
113
+ webdriver.get(
114
+ url=cls._get_full_relative_url(app_root or cls.APP_ROOT, path),
115
+ )
116
+
117
+ page = cls(webdriver, **kwargs)
112
118
  return page
113
119
 
114
120
  def refresh(self) -> None:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pomcorn"
3
- version = "0.7.2"
3
+ version = "0.7.3"
4
4
  description = "Base implementation of Page Object Model"
5
5
  authors = [
6
6
  "Saritasa <pypi@saritasa.com>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes