pomcorn 0.7.3__tar.gz → 0.7.4__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.3
3
+ Version: 0.7.4
4
4
  Summary: Base implementation of Page Object Model
5
5
  Home-page: https://pypi.org/project/pomcorn/
6
6
  License: MIT
@@ -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 `html` tag (page upper left corner).
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.action_chains import ActionChains
163
-
164
- from pomcorn import locators
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
- ActionChains(self.webdriver).move_to_element_with_offset(
171
- to_element=html_webelement,
172
- xoffset=1, # cspell:disable-line
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:
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pomcorn"
3
- version = "0.7.3"
3
+ version = "0.7.4"
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