Prompt the user to save dirty queries rather than discard them for a more natural workflow. Fixes #1972

This commit is contained in:
Harshal Dhumal
2017-07-04 23:39:10 +01:00
committed by Dave Page
parent b211eb199c
commit 76939e4f63
3 changed files with 82 additions and 34 deletions

View File

@@ -96,7 +96,7 @@ class PgadminPage:
self.find_by_xpath("//li[contains(@class, 'context-menu-item')]/span[contains(text(), 'Remove Panel')]").click()
self.driver.switch_to.frame(self.driver.find_elements_by_tag_name("iframe")[0])
time.sleep(.5)
self.click_element(self.find_by_xpath('//button[contains(@class, "ajs-button") and contains(.,"Yes")]'))
self.click_element(self.find_by_xpath('//button[contains(@class, "ajs-button") and contains(.,"Don\'t save")]'))
self.driver.switch_to.default_content()
def close_data_grid(self):