simplex 1.2.58__tar.gz → 1.2.61__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 simplex might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.58
3
+ Version: 1.2.61
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
@@ -22,7 +22,7 @@ class PostInstallCommand(install):
22
22
 
23
23
  setup(
24
24
  name="simplex",
25
- version="1.2.58",
25
+ version="1.2.61",
26
26
  packages=find_packages(),
27
27
  package_data={
28
28
  "simplex": ["browser_agent/dom/*.js"], # Include JS files in the dom directory
@@ -81,7 +81,6 @@ class Simplex:
81
81
  self.pw = None
82
82
 
83
83
  def close_session(self):
84
- time.sleep(30)
85
84
  if PLAYWRIGHT_AVAILABLE and self.pw_browser:
86
85
  try:
87
86
  self.pw_browser.close()
@@ -218,7 +217,7 @@ class Simplex:
218
217
  )
219
218
  if 'succeeded' not in response.json():
220
219
  raise ValueError(f"It looks like the click action failed to return a response. Did you set your api_key when creating the Simplex class?")
221
- if "succeeded" in response.json():
220
+ if response.json()["succeeded"]:
222
221
  return response.json()["element_clicked"]
223
222
  else:
224
223
  raise ValueError(f"Failed to click element: {response.json()['error']}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: simplex
3
- Version: 1.2.58
3
+ Version: 1.2.61
4
4
  Summary: Official Python SDK for Simplex API
5
5
  Home-page: https://simplex.sh
6
6
  Author: Simplex Labs, Inc.
File without changes
File without changes
File without changes
File without changes
File without changes