mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-11-02 08:10:03 -06:00
Fix PEP-8 issues.
This commit is contained in:
1 parent
33693734fc
commit
b2b5629a01
5 files changed
+21
-25
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user