pomcorn 0.7.3__tar.gz → 0.7.5__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.3 → pomcorn-0.7.5}/PKG-INFO +1 -1
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/element.py +0 -4
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/page.py +7 -13
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pyproject.toml +1 -1
- {pomcorn-0.7.3 → pomcorn-0.7.5}/LICENSE +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/README.md +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/__init__.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/component.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/descriptors/__init__.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/descriptors/element.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/exceptions.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/locators/__init__.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/locators/base_locators.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/locators/xpath_locators.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/py.typed +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/waits_conditions.py +0 -0
- {pomcorn-0.7.3 → pomcorn-0.7.5}/pomcorn/web_view.py +0 -0
|
@@ -285,7 +285,6 @@ class PomcornElement(Generic[locators.TLocator]):
|
|
|
285
285
|
def click(
|
|
286
286
|
self,
|
|
287
287
|
only_visible: bool = True,
|
|
288
|
-
scroll_to: bool = True,
|
|
289
288
|
wait_until_clickable: bool = True,
|
|
290
289
|
):
|
|
291
290
|
"""Click on element.
|
|
@@ -293,13 +292,10 @@ class PomcornElement(Generic[locators.TLocator]):
|
|
|
293
292
|
Args:
|
|
294
293
|
only_visible: Flag for viewing visible elements. If this is `True`
|
|
295
294
|
(default), then this method will only get visible elements.
|
|
296
|
-
scroll_to: Whether to scroll to element before clicking or not.
|
|
297
295
|
wait_until_clickable: Wait until the element is clickable before
|
|
298
296
|
clicking, or not (default `True`).
|
|
299
297
|
|
|
300
298
|
"""
|
|
301
|
-
if scroll_to:
|
|
302
|
-
self.scroll_to(only_visible=only_visible)
|
|
303
299
|
if wait_until_clickable:
|
|
304
300
|
self.wait_until_clickable()
|
|
305
301
|
self.get_element(only_visible=only_visible).click()
|
|
@@ -153,25 +153,19 @@ class Page(WebView):
|
|
|
153
153
|
)
|
|
154
154
|
|
|
155
155
|
def click_on_page(self) -> None:
|
|
156
|
-
"""Click on (1, 1) coordinates of
|
|
156
|
+
"""Click on (1, 1) coordinates of page (left upper corner).
|
|
157
157
|
|
|
158
158
|
Allows you to move focus away from an element, for example, if it
|
|
159
159
|
is currently unavailable for interaction.
|
|
160
160
|
|
|
161
161
|
"""
|
|
162
|
-
from selenium.webdriver.common.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
html_webelement = self.init_element(
|
|
167
|
-
locator=locators.TagNameLocator("html"),
|
|
168
|
-
).get_element()
|
|
162
|
+
from selenium.webdriver.common.actions.action_builder import (
|
|
163
|
+
ActionBuilder,
|
|
164
|
+
)
|
|
169
165
|
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
yoffset=1, # cspell:disable-line
|
|
174
|
-
).click().perform()
|
|
166
|
+
action = ActionBuilder(self.webdriver)
|
|
167
|
+
action.pointer_action.move_to_location(1, 1).click()
|
|
168
|
+
action.perform()
|
|
175
169
|
|
|
176
170
|
@staticmethod
|
|
177
171
|
def _get_full_relative_url(app_root: str, relative_url: str) -> str:
|
|
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
|