input_table¶
InputTable(browser, container, mapping={})
¶
Bases: Table
Component: Input Table Input table has enable/disable, more-info views additionally to configuration table.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
browser |
The selenium webdriver |
required | |
container |
Container in which the table is located. Of type dictionary: {“by”:…, “select”:…} |
required | |
mapping |
If the table headers are different from it’s html-label, provide the mapping as dictionary. For ex, {“Status”: “disabled”} |
{}
|
Source code in pytest_splunk_addon_ui_smartx/components/input_table.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|
input_status_toggle(name, enable)
¶
This function sets the table row status as either enabled or disabled. If it is already enabled then it reuturns an exception :param name: Str The row that we want to enable st the status to as enabled or disabled :param enable: Bool Whether or not we want the table field to be set to enable or disable :return: Bool whether or not enabling or disabling the field was successful, If the field was already in the state we wanted it in, then it will return an exception
Source code in pytest_splunk_addon_ui_smartx/components/input_table.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
|