syncloud-lib 309__tar.gz → 310__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-309/syncloud_lib.egg-info → syncloud-lib-310}/PKG-INFO +1 -1
- {syncloud-lib-309 → syncloud-lib-310/syncloud_lib.egg-info}/PKG-INFO +1 -1
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/conftest.py +2 -2
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/selenium_wrapper.py +15 -2
- syncloud-lib-310/version +1 -0
- syncloud-lib-309/version +0 -1
- {syncloud-lib-309 → syncloud-lib-310}/LICENSE +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/MANIFEST.in +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/setup.cfg +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/setup.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloud_lib.egg-info/SOURCES.txt +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloud_lib.egg-info/dependency_links.txt +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloud_lib.egg-info/requires.txt +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloud_lib.egg-info/top_level.txt +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/__init__.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/__init__.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/config.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/connection.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/paths.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/ports.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/service.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/storage.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/urls.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/application/users.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/error.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/fs.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/gen.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/http.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/__init__.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/device.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/hosts.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/installer.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/loop.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/screenshots.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/integration/ssh.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/json/__init__.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/json/convertible.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/linux.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/syncloudlib/logger.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/application/test_connection.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/application/test_paths.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/application/test_service.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/application/test_storage.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/application/test_urls.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/integration/test_hosts.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/integration/test_installer.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/integration/test_loop.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/integration/test_ssh.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/json/test_convertible.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/test_fs.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/test_gen.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/test_linux.py +0 -0
- {syncloud-lib-309 → syncloud-lib-310}/test/test_logger.py +0 -0
|
@@ -226,5 +226,5 @@ def selenium_timeout():
|
|
|
226
226
|
|
|
227
227
|
|
|
228
228
|
@pytest.fixture(scope="module")
|
|
229
|
-
def selenium(driver, ui_mode, screenshot_dir, app_domain, selenium_timeout):
|
|
230
|
-
return SeleniumWrapper(driver, ui_mode, screenshot_dir, app_domain, selenium_timeout)
|
|
229
|
+
def selenium(driver, ui_mode, screenshot_dir, app_domain, selenium_timeout, browser):
|
|
230
|
+
return SeleniumWrapper(driver, ui_mode, screenshot_dir, app_domain, selenium_timeout, browser)
|
|
@@ -7,11 +7,12 @@ from selenium.webdriver.support import expected_conditions
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class SeleniumWrapper:
|
|
10
|
-
def __init__(self, driver, ui_mode, screenshot_dir, app_domain, timeout):
|
|
10
|
+
def __init__(self, driver, ui_mode, screenshot_dir, app_domain, timeout, browser):
|
|
11
11
|
self.app_domain = app_domain
|
|
12
12
|
self.screenshot_dir = screenshot_dir
|
|
13
13
|
self.ui_mode = ui_mode
|
|
14
14
|
self.driver = driver
|
|
15
|
+
self.browser = browser
|
|
15
16
|
self.wait_driver = WebDriverWait(self.driver, timeout)
|
|
16
17
|
|
|
17
18
|
def find_by_xpath(self, xpath):
|
|
@@ -47,7 +48,6 @@ class SeleniumWrapper:
|
|
|
47
48
|
self.wait_or_screenshot(expected_conditions.presence_of_element_located((by, value)))
|
|
48
49
|
return self.driver.find_element(by, value)
|
|
49
50
|
|
|
50
|
-
|
|
51
51
|
def exists_by(self, by, value, timeout=10):
|
|
52
52
|
driver = WebDriverWait(self.driver, timeout)
|
|
53
53
|
cond = expected_conditions.visibility_of_element_located((by, value))
|
|
@@ -88,3 +88,16 @@ class SeleniumWrapper:
|
|
|
88
88
|
|
|
89
89
|
def open_app(self, path=''):
|
|
90
90
|
self.driver.get("https://{0}{1}".format(self.app_domain, path))
|
|
91
|
+
|
|
92
|
+
def log(self):
|
|
93
|
+
if self.browser != "chrome":
|
|
94
|
+
print("browser logs are only supported in chrome")
|
|
95
|
+
return
|
|
96
|
+
|
|
97
|
+
try:
|
|
98
|
+
for entry in self.driver.get_log('browser'):
|
|
99
|
+
print("---")
|
|
100
|
+
print(entry)
|
|
101
|
+
except Exception as e:
|
|
102
|
+
print("error")
|
|
103
|
+
print(e)
|
syncloud-lib-310/version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
310
|
syncloud-lib-309/version
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
309
|
|
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
|