vchrome 0.1.14__py3-none-any.whl → 0.1.15__py3-none-any.whl
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.
- vchrome/__init__.py +5 -1
- {vchrome-0.1.14.dist-info → vchrome-0.1.15.dist-info}/METADATA +1 -1
- vchrome-0.1.15.dist-info/RECORD +6 -0
- vchrome-0.1.14.dist-info/RECORD +0 -6
- {vchrome-0.1.14.dist-info → vchrome-0.1.15.dist-info}/WHEEL +0 -0
- {vchrome-0.1.14.dist-info → vchrome-0.1.15.dist-info}/top_level.txt +0 -0
vchrome/__init__.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.15'
|
|
2
2
|
__author__ = 'v'
|
|
3
3
|
# ----------------------------------------------------------------------------------------------------
|
|
4
4
|
_allowed = {'Chrome'}
|
|
@@ -1141,6 +1141,8 @@ def cdp_client(hostname, port, debug=False, runtimeEnable=False, cfg={}):
|
|
|
1141
1141
|
def click(self, x=1, y=2, zero='center', button='left', count=1, timeout=15):
|
|
1142
1142
|
self.wait_show(timeout)
|
|
1143
1143
|
self._set_in_view()
|
|
1144
|
+
self.focus()
|
|
1145
|
+
time.sleep(0.01)
|
|
1144
1146
|
_x, _y = self._get_xy(x, y, zero)
|
|
1145
1147
|
self.f.cdp('Input.dispatchMouseEvent',{"buttons":0,"type":"mouseMoved","x":_x,"y":_y,"button":"none","clickCount":0})
|
|
1146
1148
|
self.f.cdp('Input.dispatchMouseEvent',{"buttons":1,"type":"mousePressed","x":_x,"y":_y,"button":button,"clickCount":count})
|
|
@@ -1197,6 +1199,8 @@ def cdp_client(hostname, port, debug=False, runtimeEnable=False, cfg={}):
|
|
|
1197
1199
|
def drag(self, x=1, y=2, zero='center', button='left', count=1, timeout=15):
|
|
1198
1200
|
self.wait_show(timeout)
|
|
1199
1201
|
self._set_in_view()
|
|
1202
|
+
self.focus()
|
|
1203
|
+
time.sleep(0.01)
|
|
1200
1204
|
x, y = self._get_xy(x, y, zero)
|
|
1201
1205
|
self.cache_xy = [x, y]
|
|
1202
1206
|
self.f.cdp('Input.dispatchMouseEvent',{"buttons":1,"type":"mousePressed","x":int(x),"y":int(y),"button":button,"clickCount":count})
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
v/__init__.py,sha256=6ZddLaDcwLudHWmFr2utAcYhperXw9AYoItNPm8EZSM,65
|
|
2
|
+
vchrome/__init__.py,sha256=D9ffiok0sw1PE0_6fR1l7ChBOvNCRVGh9b57XUQypng,229297
|
|
3
|
+
vchrome-0.1.15.dist-info/METADATA,sha256=E5EP_v4O7tRltuoH74X00QxM0hRgX3ZQkLWDh9n3NgQ,57
|
|
4
|
+
vchrome-0.1.15.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
5
|
+
vchrome-0.1.15.dist-info/top_level.txt,sha256=IYbkbnFb2FGoroYj_ZXIitmnJDgYBA29_HmK9BdEUkY,10
|
|
6
|
+
vchrome-0.1.15.dist-info/RECORD,,
|
vchrome-0.1.14.dist-info/RECORD
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
v/__init__.py,sha256=6ZddLaDcwLudHWmFr2utAcYhperXw9AYoItNPm8EZSM,65
|
|
2
|
-
vchrome/__init__.py,sha256=ilP-O_1VJktPcarXrqDLfYMI9kHf1cY4wTzHUJYvwKM,229185
|
|
3
|
-
vchrome-0.1.14.dist-info/METADATA,sha256=1dsU6dFgkByeXNfk42mG47dDKLrVRwfljdl3brdBJ6E,57
|
|
4
|
-
vchrome-0.1.14.dist-info/WHEEL,sha256=hPN0AlP2dZM_3ZJZWP4WooepkmU9wzjGgCLCeFjkHLA,92
|
|
5
|
-
vchrome-0.1.14.dist-info/top_level.txt,sha256=IYbkbnFb2FGoroYj_ZXIitmnJDgYBA29_HmK9BdEUkY,10
|
|
6
|
-
vchrome-0.1.14.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|