コード例 #1
0
          web_ui.Select('//select[@id="hardware__monitoring"]')),
     ]),
     ('Customize', [
         ('specification',
          web_ui.Select('//select[@id="customize__sysprep_enabled"]')),
         ('specification_name',
          web_ui.Table('//div[@id="prov_vc_div"]/table')),
         ('computer_name', '//input[@id="customize__linux_host_name"]'),
         ('domain_name', '//input[@id="customize__linux_domain_name"]'),
         ('dns_servers', '//input[@id="customize__dns_servers"]'),
         ('dns_suffixes', '//input[@id="customize__dns_suffixes"]'),
     ]),
     ('Schedule',
      [
          ('schedule_type', web_ui.Radio('schedule__schedule_type')),
          ('provision_date', web_ui.Calendar('miq_date_1')),
          ('provision_start_hour',
           web_ui.Select('//select[@id="start_hour"]')),
          ('provision_start_min', web_ui.Select('//select[@id="start_min"]')),
          ('power_on', '//input[@id="schedule__vm_auto_start"]'),
          ('retirement',
           web_ui.Select('//select[@id="schedule__retirement"]')),
          ('retirement_warning',
           web_ui.Select('//select[@id="schedule__retirement_warn"]')),
      ])]))


def _all_catalogitems_add_new(context):
    catalog_item_tree.click_path('All Catalog Items')
    tb_select('Add a New Catalog Item')
    provider_type = context['provider_type']
コード例 #2
0
 def __init__(self, o):
     self._object = o
     self._interval = web_ui.AngularSelect(loc="perf_typ")
     self._date = web_ui.Calendar(name="miq_date_1")
     self._week = web_ui.AngularSelect(loc="perf_days")
     self._minute = web_ui.AngularSelect(loc="perf_minutes")
コード例 #3
0
ファイル: myservice.py プロジェクト: vrutkovs/cfme_tests
from utils.wait import wait_for
from utils import version

lifecycle_btn = partial(tb.select, "Lifecycle")
reload_func = partial(tb.select, "Reload current display")
my_service_tree = partial(accordion.tree, "Services")
details_page = Region(infoblock_type='detail')
cfg_btn = partial(tb.select, "Configuration")
policy_btn = partial(tb.select, "Policy")
download_btn = partial(tb.select, "download_choice")


retirement_form = Form(
    fields=[
        ('retirement_date', {
            version.LOWEST: ui.Calendar('miq_date_1'),
            '5.5': ui.Calendar('retirementDate')}),
        ('retirement_warning', ui.Select("select#retirement_warn"))
    ])

edit_service_form = Form(
    fields=[
        ("name", ui.Input("name")),
        ("description", ui.Input("description"))
    ])

set_ownership_form = Form(
    fields=[
        ("select_owner", ui.Select("select#user_name")),
        ("select_group", ui.Select("select#group_name"))
    ])
コード例 #4
0
from cfme import web_ui as ui
from cfme.fixtures import pytest_selenium as sel
from cfme.web_ui import accordion, menu, flash, Quadicon, Region, Form, fill, form_buttons
from cfme.web_ui import toolbar as tb
from utils.update import Updateable
from utils.wait import wait_for

lifecycle_btn = partial(tb.select, "Lifecycle")
reload_func = partial(tb.select, "Reload current display")
my_service_tree = partial(accordion.tree, "Services")
details_page = Region(infoblock_type='detail')
cfg_btn = partial(tb.select, "Configuration")
policy_btn = partial(tb.select, "Policy")

retirement_form = Form(
    fields=[('retirement_date', ui.Calendar('miq_date_1')
             ), ('retirement_warning', ui.Select("select#retirement_warn"))])

edit_service_form = Form(
    fields=[("name", ui.Input("name")), ("description",
                                         ui.Input("description"))])

set_ownership_form = Form(
    fields=[("select_owner", ui.Select("select#user_name")
             ), ("select_group", ui.Select("select#group_name"))])

edit_tags_form = Form(fields=[(
    "select_tag",
    ui.Select("select#tag_cat")), ("select_value",
                                   ui.Select("select#tag_add"))])
コード例 #5
0

###
# Form handling
#
field_form = web_ui.Form(fields=[
    ("type", web_ui.Select("//select[@id='chosen_typ']")),
    ("field", web_ui.Select("//select[@id='chosen_field']")),
    ("key", web_ui.Select("//select[@id='chosen_key']")),
    ("value", "//*[@id='chosen_value']"),
    ("user_input", "//input[@id='user_input']"),
])

field_date_form = web_ui.Form(
    fields=[("dropdown_select", web_ui.Select("//select[@id='chosen_from_1']")
             ), ("input_select_date", web_ui.Calendar("miq_date_1_0")),
            ("input_select_time",
             web_ui.Select("//select[@id='miq_time_1_0']"))])

count_form = web_ui.Form(fields=[
    ("type", web_ui.Select("//select[@id='chosen_typ']")),
    ("count", web_ui.Select("//select[@id='chosen_count']")),
    ("key", web_ui.Select("//select[@id='chosen_key']")),
    ("value", "//*[@id='chosen_value']"),
    ("user_input", "//input[@id='user_input']"),
])

tag_form = web_ui.Form(fields=[
    ("type", web_ui.Select("//select[@id='chosen_typ']")),
    ("count", web_ui.Select("//select[@id='chosen_tag']")),
    ("value", "//*[@id='chosen_value']"),