simplex 1.2.28__py3-none-any.whl → 1.2.30__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.
Potentially problematic release.
This version of simplex might be problematic. Click here for more details.
- simplex/simplex.py +2 -8
- {simplex-1.2.28.dist-info → simplex-1.2.30.dist-info}/METADATA +1 -1
- simplex-1.2.30.dist-info/RECORD +11 -0
- simplex-1.2.28.dist-info/RECORD +0 -11
- {simplex-1.2.28.dist-info → simplex-1.2.30.dist-info}/LICENSE +0 -0
- {simplex-1.2.28.dist-info → simplex-1.2.30.dist-info}/WHEEL +0 -0
- {simplex-1.2.28.dist-info → simplex-1.2.30.dist-info}/entry_points.txt +0 -0
- {simplex-1.2.28.dist-info → simplex-1.2.30.dist-info}/top_level.txt +0 -0
simplex/simplex.py
CHANGED
|
@@ -73,7 +73,7 @@ class Simplex:
|
|
|
73
73
|
else:
|
|
74
74
|
raise ValueError(f"Failed to goto url: {response.json()['error']}")
|
|
75
75
|
|
|
76
|
-
def click(self, element_description: str, cdp_url: str = None
|
|
76
|
+
def click(self, element_description: str, cdp_url: str = None):
|
|
77
77
|
if not cdp_url and not self.session_id:
|
|
78
78
|
raise ValueError(f"Must call create_session before calling action click with element_description='{element_description}'")
|
|
79
79
|
|
|
@@ -84,9 +84,6 @@ class Simplex:
|
|
|
84
84
|
else:
|
|
85
85
|
data['session_id'] = self.session_id
|
|
86
86
|
|
|
87
|
-
if use_vision:
|
|
88
|
-
data['use_vision'] = use_vision
|
|
89
|
-
|
|
90
87
|
response = requests.post(
|
|
91
88
|
f"{BASE_URL}/click",
|
|
92
89
|
headers={
|
|
@@ -214,7 +211,7 @@ class Simplex:
|
|
|
214
211
|
else:
|
|
215
212
|
raise ValueError(f"Failed to extract bbox: {response.json()['error']}")
|
|
216
213
|
|
|
217
|
-
def extract_text(self, element_description: str, cdp_url: str = None
|
|
214
|
+
def extract_text(self, element_description: str, cdp_url: str = None):
|
|
218
215
|
if not cdp_url and not self.session_id:
|
|
219
216
|
raise ValueError(f"Must call create_session before calling action extract_text with element_description='{element_description}'")
|
|
220
217
|
|
|
@@ -225,9 +222,6 @@ class Simplex:
|
|
|
225
222
|
else:
|
|
226
223
|
data['session_id'] = self.session_id
|
|
227
224
|
|
|
228
|
-
if use_vision:
|
|
229
|
-
data['use_vision'] = use_vision
|
|
230
|
-
|
|
231
225
|
response = requests.get(
|
|
232
226
|
f"{BASE_URL}/extract-text",
|
|
233
227
|
headers={
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
|
|
2
|
+
simplex/cli.py,sha256=zRf59YFwDg3mrPeAuYh6pvOidRLiKkQ_NdYVP2XAXTY,2481
|
|
3
|
+
simplex/simplex.py,sha256=rFISsAihefu1WbktzAPAy2GDTIKpGkLZPV7wriej3w4,13621
|
|
4
|
+
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
+
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
+
simplex-1.2.30.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
+
simplex-1.2.30.dist-info/METADATA,sha256=7C33QLqALvPmMWGQ3sLOMr91bfWgKyxHBt7n0GXW_qw,938
|
|
8
|
+
simplex-1.2.30.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
+
simplex-1.2.30.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
+
simplex-1.2.30.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
+
simplex-1.2.30.dist-info/RECORD,,
|
simplex-1.2.28.dist-info/RECORD
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
simplex/__init__.py,sha256=L_5i__xt_ZDkr6e-Wx9cr84t9sXpioOT7j01NJYJCTE,75
|
|
2
|
-
simplex/cli.py,sha256=zRf59YFwDg3mrPeAuYh6pvOidRLiKkQ_NdYVP2XAXTY,2481
|
|
3
|
-
simplex/simplex.py,sha256=R0KcvnIANySK_sYkM-qtD5SIbNbTfn6_KL3nco-nUao,13809
|
|
4
|
-
simplex/deploy/__init__.py,sha256=_JQ81F_Nu7hSAfMA691gzs6a4-8oZ-buJ9h3Au12BKw,96
|
|
5
|
-
simplex/deploy/push.py,sha256=hRAbtFZaECKnBljaOLQ5nzJ6hk7tZgc1c7QdgxKQFoY,6123
|
|
6
|
-
simplex-1.2.28.dist-info/LICENSE,sha256=Xh0SJjYZfNI71pCNMB40aKlBLLuOB0blx5xkTtufFNQ,1075
|
|
7
|
-
simplex-1.2.28.dist-info/METADATA,sha256=G7byF_8lnKHGjpPy2nPgTvxrLY4gMcud2EqKmaE49Bc,938
|
|
8
|
-
simplex-1.2.28.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
9
|
-
simplex-1.2.28.dist-info/entry_points.txt,sha256=3veL2w3c5vxb3dm8I_M8Fs-370n1ZnvD8uu1nSsL7z8,45
|
|
10
|
-
simplex-1.2.28.dist-info/top_level.txt,sha256=cbMH1bYpN0A3gP-ecibPRHasHoqB-01T_2BUFS8p0CE,8
|
|
11
|
-
simplex-1.2.28.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|