RCUE dialog implementation

https://fedorahosted.org/freeipa/ticket/3904
This commit is contained in:
Petr Vobornik
2013-10-18 12:14:25 +02:00
committed by Martin Kosek
parent d4a6f20e65
commit 23c042775c
13 changed files with 288 additions and 103 deletions

View File

@@ -504,10 +504,10 @@ class UI_driver(object):
info = None
if dialog:
content = self.find('div.ui-dialog-content', By.CSS_SELECTOR, dialog, strict=True)
body = self.find('.rcue-dialog-body', By.CSS_SELECTOR, dialog, strict=True)
info = {
'name': content.get_attribute('data-name'),
'text': content.text,
'name': dialog.get_attribute('data-name'),
'text': body.text,
}
return info
@@ -563,7 +563,7 @@ class UI_driver(object):
if not dialog:
dialog = self.get_dialog(strict=True)
s = "div.ui-dialog-buttonset button[name=%s]" % name
s = ".rcue-dialog-buttons button[name=%s]" % name
self._button_click(s, dialog, name)
def action_button_click(self, name, parent):