Example #1
0
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from pom import ui
from selenium.webdriver.common.by import By

from stepler.horizon.app import ui as _ui

from .base import PageBase


@ui.register_ui(
    checkbox=_ui.CheckBox(By.CSS_SELECTOR, 'input[type="checkbox"]'),
    dropdown_menu=_ui.DropdownMenu())
class RowNamespace(_ui.Row):
    """Row with namespace in namespaces table."""


class TableNamespaces(_ui.Table):
    """Namespaces table."""

    columns = {'name': 2}
    row_cls = RowNamespace


@ui.register_ui(
    field_namespace_json=ui.TextField(By.NAME, 'direct_input'),
    combobox_namespace_source=_ui.combobox_by_label(
        "Namespace Definition Source"))
Example #2
0
# limitations under the License.

from pom import ui
from selenium.webdriver.common.by import By

from stepler.horizon.app import ui as _ui


@ui.register_ui(field_description=ui.TextField(By.NAME,
                                               'vol_type_description'),
                field_name=ui.TextField(By.NAME, 'name'))
class FormCreateVolumeType(_ui.Form):
    """Form to create volume type."""


@ui.register_ui(dropdown_menu=_ui.DropdownMenu())
class RowVolumeType(_ui.Row):
    """Volume type row of volume types table."""


class TableVolumeTypes(_ui.Table):
    """Volume types table."""

    columns = {'name': 2}
    row_cls = RowVolumeType


@ui.register_ui(dropdown_menu=_ui.DropdownMenu())
class RowQosSpec(_ui.Row):
    """QoS Spec row of QoS Specs table."""