Fix PEP-8 issues.

This commit is contained in:
Dave Page committed 2019-03-21 12:58:52 +00:00
1 parent 33693734fc
commit b2b5629a01
5 files changed
+21 -25

No files matched your search

+7 -7
View File
@@ -185,12 +185,12 @@ class PgadminPage:
"""The function will be used for opening Trees node only"""
# get the element which contains 'aria-expanded' info
tables_expansion_ele =self.find_by_xpath("//div[div[div[div[div[div"
"[div[div[span[span["
"(@class='aciTreeText') and "
"text()='Tables']]]]]]]]]]")
tables_expansion_ele = self.find_by_xpath("//div[div[div[div[div[div"
"[div[div[span[span["
"(@class='aciTreeText') and "
"text()='Tables']]]]]]]]]]")
if tables_expansion_ele.get_attribute('aria-expanded') =='false':
if tables_expansion_ele.get_attribute('aria-expanded') == 'false':
# button element of the Tables node to open it
item_button = self.find_by_xpath(
"//div[span[span[(@class='aciTreeText') and text()"
@@ -394,9 +394,9 @@ class PgadminPage:
element_found = False
try:
WebDriverWait(self.driver, timeout, .01).until(
EC.visibility_of_element_located((By.XPATH, xpath)))
EC.visibility_of_element_located((By.XPATH, xpath)))
element_found = True
except:
except Exception as e:
pass
return element_found