From 408457ce53c553c27f25a682f3f5118ae2e1ab30 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 13 May 2014 13:00:16 +0200 Subject: webui: change control buttons to normal buttons Now buttons have normal button appearance instead of link button. Partially fixes: https://fedorahosted.org/freeipa/ticket/4258 since the disabling is done through button's disabled attribute. Reviewed-By: Endi Sukma Dewata --- ipatests/test_webui/ui_driver.py | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'ipatests') diff --git a/ipatests/test_webui/ui_driver.py b/ipatests/test_webui/ui_driver.py index 823f82f8a..780f7f8a0 100644 --- a/ipatests/test_webui/ui_driver.py +++ b/ipatests/test_webui/ui_driver.py @@ -596,7 +596,7 @@ class UI_driver(object): Click on facet button with given name """ facet = self.get_facet() - s = ".facet-controls a[name=%s]" % name + s = ".facet-controls button[name=%s]" % name self._button_click(s, facet, name) def dialog_button_click(self, name, dialog=None): @@ -1549,9 +1549,9 @@ class UI_driver(object): """ assert expected == current, "Rows don't match. Expected: %d, Got: %d" % (expected, current) - def assert_button_enabled(self, name, context_selector=None, enabled=True): + def assert_action_button_enabled(self, name, context_selector=None, enabled=True): """ - Assert that button is enabled or disabled + Assert that action-button is enabled or disabled """ s = "" if context_selector: @@ -1564,6 +1564,21 @@ class UI_driver(object): assert btn.is_displayed(), 'Button is not displayed' assert valid, 'Button has incorrect enabled state.' + def assert_button_enabled(self, name, context_selector=None, enabled=True): + """ + Assert that button is enabled or disabled (expects that element will be +