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.
- {pomcorn-0.7.2 → pomcorn-0.7.3}/PKG-INFO +1 -1
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/page.py +9 -3
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pyproject.toml +1 -1
- {pomcorn-0.7.2 → pomcorn-0.7.3}/LICENSE +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/README.md +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/__init__.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/component.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/descriptors/__init__.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/descriptors/element.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/element.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/exceptions.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/locators/__init__.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/locators/base_locators.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/locators/xpath_locators.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/py.typed +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/waits_conditions.py +0 -0
- {pomcorn-0.7.2 → pomcorn-0.7.3}/pomcorn/web_view.py +0 -0
|
@@ -103,12 +103,18 @@ class Page(WebView):
|
|
|
103
103
|
path: Relative URL.
|
|
104
104
|
|
|
105
105
|
"""
|
|
106
|
-
|
|
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(
|
|
111
|
-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|