Potentially make modal tests more consistent

This commit is contained in:
2020-02-25 16:37:05 +00:00
parent 742e90fa13
commit aa4977edb5
2 changed files with 12 additions and 13 deletions

View File

@@ -202,6 +202,10 @@ class AssetAuditList(AssetList):
def search(self):
self.find_element(*self._go_button_locator).click()
@property
def modal_is_displayed(self):
return self.driver.find_element_by_id('modal').is_displayed()
@property
def error(self):
try:
@@ -231,10 +235,6 @@ class AssetAuditList(AssetList):
'cores': (regions.TextBox, (By.ID, 'id_cores'))
}
@property
def is_displayed(self):
return self.root.is_displayed()
@property
def errors(self):
try: