syncloud-lib 320__tar.gz → 322__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.
- {syncloud-lib-320/syncloud_lib.egg-info → syncloud-lib-322}/PKG-INFO +1 -1
- {syncloud-lib-320 → syncloud-lib-322/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/selenium_wrapper.py +16 -2
- syncloud-lib-322/version +1 -0
- syncloud-lib-320/version +0 -1
- {syncloud-lib-320 → syncloud-lib-322}/LICENSE +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/MANIFEST.in +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/setup.cfg +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/setup.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/__init__.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/__init__.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/config.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/connection.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/paths.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/ports.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/service.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/storage.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/urls.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/application/users.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/error.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/fs.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/gen.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/http.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/__init__.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/conftest.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/device.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/hosts.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/installer.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/loop.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/integration/ssh.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/json/__init__.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/json/convertible.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/linux.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/syncloudlib/logger.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/application/test_connection.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/application/test_paths.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/application/test_service.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/application/test_storage.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/application/test_urls.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/integration/test_hosts.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/integration/test_installer.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/integration/test_loop.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/integration/test_ssh.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/json/test_convertible.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/test_fs.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/test_gen.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/test_linux.py +0 -0
- {syncloud-lib-320 → syncloud-lib-322}/test/test_logger.py +0 -0
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import time
|
|
2
2
|
|
|
3
|
+
from retry import retry
|
|
4
|
+
|
|
3
5
|
from syncloudlib.integration.screenshots import screenshots
|
|
4
6
|
from selenium.webdriver.support.ui import WebDriverWait
|
|
5
7
|
from selenium.webdriver.common.by import By
|
|
@@ -27,11 +29,13 @@ class SeleniumWrapper:
|
|
|
27
29
|
def find_by_css(self, css):
|
|
28
30
|
return self.find_by(By.CSS_SELECTOR, css)
|
|
29
31
|
|
|
30
|
-
def find_by(self, by, value):
|
|
32
|
+
def find_by(self, by, value, parent=None):
|
|
33
|
+
if not parent:
|
|
34
|
+
parent = self.driver
|
|
31
35
|
#self.wait_or_screenshot(expected_conditions.visibility_of_element_located((by, value)))
|
|
32
36
|
self.wait_or_screenshot(expected_conditions.presence_of_element_located((by, value)))
|
|
33
37
|
try:
|
|
34
|
-
return
|
|
38
|
+
return parent.find_element(by, value)
|
|
35
39
|
except Exception as e:
|
|
36
40
|
self.screenshot('exception', True)
|
|
37
41
|
|
|
@@ -109,3 +113,13 @@ class SeleniumWrapper:
|
|
|
109
113
|
print("browser log")
|
|
110
114
|
for entry in self.driver.get_log('browser'):
|
|
111
115
|
print(entry)
|
|
116
|
+
|
|
117
|
+
@retry(exceptions=Exception, tries=10, delay=1, backoff=2)
|
|
118
|
+
def element_by_js(self, js):
|
|
119
|
+
try:
|
|
120
|
+
elem = self.driver.execute_script('return ' + js)
|
|
121
|
+
self.driver.execute_script("arguments[0].scrollIntoView();", elem)
|
|
122
|
+
return elem
|
|
123
|
+
except Exception:
|
|
124
|
+
self.screenshot('exception')
|
|
125
|
+
raise
|
syncloud-lib-322/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
322
|
syncloud-lib-320/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
320
|
|
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
|
|
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
|
|
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
|
|
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
|