aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--webtests/browser_test.py (renamed from wqflask/maintenance/browser_test.py)7
-rwxr-xr-xwebtests/chromedriverbin0 -> 17741222 bytes
-rw-r--r--webtests/correlation_matrix_test.py (renamed from wqflask/maintenance/correlation_matrix_test.py)1
-rw-r--r--webtests/correlation_test.py (renamed from wqflask/maintenance/correlation_test.py)0
-rw-r--r--webtests/libpeerconnection.log0
-rw-r--r--webtests/marker_regression_test.py (renamed from wqflask/maintenance/marker_regression_test.py)1
6 files changed, 7 insertions, 2 deletions
diff --git a/wqflask/maintenance/browser_test.py b/webtests/browser_test.py
index ecf8e1ca..50e4d128 100644
--- a/wqflask/maintenance/browser_test.py
+++ b/webtests/browser_test.py
@@ -18,7 +18,12 @@ class Test(object):
def click(self, xpath_selector):
el = self.browser.find_element_by_xpath(xpath_selector)
- text = el.text.strip() or el.get_attribute("value").strip()
+ if el.text:
+ text = el.text.strip()
+ elif el.get_attribute("value"):
+ text = el.get_attribute("value").strip()
+ else:
+ text = "Notext"
el.click()
print("clicked:", text)
sleep(2)
diff --git a/webtests/chromedriver b/webtests/chromedriver
new file mode 100755
index 00000000..754eb668
--- /dev/null
+++ b/webtests/chromedriver
Binary files differ
diff --git a/wqflask/maintenance/correlation_matrix_test.py b/webtests/correlation_matrix_test.py
index 5f8f10e1..21051fd7 100644
--- a/wqflask/maintenance/correlation_matrix_test.py
+++ b/webtests/correlation_matrix_test.py
@@ -36,6 +36,7 @@ title: BXD Trait Collection
Select all records
>>> test.click('''/html/body/table/tbody/tr[3]/td/table/tbody/tr/td/form/table/tbody/tr/td/table/tbody/tr/td/table/tbody/tr/td/a/img''')
+
Click Matrix
>>> test.click('''/html/body/table/tbody/tr[3]/td/table/tbody/tr/td/form/table/tbody/tr/td/table/tbody/tr[2]/td/table/tbody/tr/td[2]/a/img''')
diff --git a/wqflask/maintenance/correlation_test.py b/webtests/correlation_test.py
index aaf3f7df..aaf3f7df 100644
--- a/wqflask/maintenance/correlation_test.py
+++ b/webtests/correlation_test.py
diff --git a/webtests/libpeerconnection.log b/webtests/libpeerconnection.log
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/webtests/libpeerconnection.log
diff --git a/wqflask/maintenance/marker_regression_test.py b/webtests/marker_regression_test.py
index f4840bd7..3baf1e95 100644
--- a/wqflask/maintenance/marker_regression_test.py
+++ b/webtests/marker_regression_test.py
@@ -7,7 +7,6 @@ title: GeneNetwork
Choose the type
>>> test.click_option('''//*[@id="tissue"]''', 'Liver mRNA')
-clicked: Liver mRNA
Enter the Get Any
>>> test.enter_text('''//*[@id="tfor"]''', 'grin2b')