Skip to content

Commit 07582cb

Browse files
SettingsInterface
1 parent acd7287 commit 07582cb

File tree

3 files changed

+28
-13
lines changed

3 files changed

+28
-13
lines changed

InstallFramework.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,13 @@ There are two methods for this. The simpler one manages it through text file(s),
2626

2727
An alternative method is Firefox profile-based configuration set(s), controlled through GUI. It can also override any {{valuesManifest}}s. It's done through {{navAssociationsManifests}}. However, using GUI (for any part of configuration) usually requires the whole configuration to be in two stages.
2828

29-
## Configure SeLite to load the framework ##
29+
## Configure loading the framework ##
3030

3131
### Through _values_ manifests ###
3232
This is already done for [scripts][script] that come with SeLite frameworks. If you're using one of those frameworks, you can copy its {{ valuesManifest }} `SeLiteSettingsValues.txt`. Otherwise create it as a plain text file. Either way, you then need to adjust/enter value of field `extensions.selite-settings.common.bootstrappedCoreExtensions`, so it points to location of the framework Javascript file. See also {{navValuesManifests}} and {{navLiteralsForSpecialValues}}.
3333

34-
### Through GUI ###
35-
<!-- @TODO eliminate or Move to SettingsInterface? -->
36-
You can configure that via GUI as per [SettingsInterface](SettingsInterface):
37-
38-
1. Visit {{chromeUrl}} _chrome://selite-settings/content/tree.xul?module=extensions.selite-settings.common_
39-
2. create a new [set]
40-
3. if you're using just one script configuration, make the set default (click at Default next to its name)
41-
4. select 'Add a new value' next to `bootstrapCoreExtensions`. Point it to where you downloaded the framework JS file.
42-
43-
However, if you're going to use several script configurations, then create a [set] for each, but don't make any of those sets default. Then connect the sets with folders of your [suite(s)][suite] through {{associationsManifest}} as per {{navAssociationsManifests}}.
34+
### Through GUI
35+
See [SettingsInterface](SettingsInterface) > [Managing mode](SettingsInterface#managing-mode). Select 'Add a new value' next to `bootstrapCoreExtensions`. Point it to where you downloaded the framework JS file.
4436

4537
## Edit or review configuration of the framework ##
4638

JavascriptEssential.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ layout: default
1414
* Reflecting on what you intend to implement can save you unnecessary work (immediately or later).
1515
* Complexity makes coding often slow and frustrating. By documenting first, you will be free to relax with no paperwork duty once implemented.
1616
* If you can't finish implementation or you need assistance, it's easier for someone else to pick it up if there's some documentation.
17-
* Create [scripts][script] to be run from Selenium IDE - see [PackagedScripts](PackagedScripts).<!-- TODO move this elsewhere: it's Selense scripts, not JS.-->
17+
* Create [scripts][script] to be run from Selenium IDE - see [PackagedScripts](PackagedScripts).<!-- TODO move this elsewhere: it's Selenese scripts, not JS.-->
1818
* Don't use fixed line length - see [DocumentationStandard](DocumentationStandard). However, split complex expressions on multiple lines.
1919
* Use ESLint. [Install it](http://eslint.org/docs/user-guide/command-line-interface) and run it as `eslint .` in both `SeLite` and `SelBlocksGlobal` folders.
2020
* Apply [Mozilla WebExtensions code style](https://wiki.mozilla.org/WebExtensions/Hacking#Code_Style).

SettingsInterface.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,11 @@ Two most frequent use cases are available in Selenium IDE menu > Options. They l
1010

1111
SeLiteSettings' configuration interface is within Firefox at {{chromeUrl}}s. The URLs are
1212

13+
| For [**Managing mode**](#managing-mode): | |
1314
| _chrome://selite-settings/content/tree.xul_ | to manage Firefox profile-based set(s) for all registered modules |
1415
| _chrome://selite-settings/content/tree.xul?module=full-module-name_ | to manage set(s) for a given module |
1516
| _chrome://selite-settings/content/tree.xul?prefix=prefix-of-full-module-name_ | to manage set(s) of all modules whose name starts with given prefix |
17+
| For [**Reviewing mode**](#reviewing-mode): | |
1618
| _chrome://selite-settings/content/tree.xul?selectFolder_ | to select a folder for which to review any fields |
1719
| _chrome://selite-settings/content/tree.xul?folder=/full/path/to/folder_ | to review effective configuration for [suites][suite] in that folder, based on any applicable sets or manifests as per [SettingsScope](SettingsScope) |
1820
| _chrome://selite-settings/content/tree.xul?register_ | to register a module manually (from its javascript file). You need this only if you design or import a custom configuration module that is not packaged as an [extension of Selenium IDE]. Alternatively you may use your own [Core extension] and [SettingsAPI](SettingsAPI) to register your module automatically. |
@@ -24,6 +26,27 @@ Per-folder view colours fields based on where the value(s) come from:
2426
* Firefox profile-based configuration set
2527
* {{valuesManifest}}
2628

29+
# Navigation
30+
Hover the mouse over a field row for a mouseover tip with a field description.
31+
32+
## Managing mode
33+
In managing mode (e.g. at {{chromeUrl}} _chrome://selite-settings/content/tree.xul_), clicking at a cell in column
34+
35+
* 'Default', at set level, toggles the set default.
36+
* 'True', 'Value' at a field/field entry level toggles the boolean value, or edits the value, respectively.
37+
* 'Null/Undefine' at a field/field entry level toggles the value first to `null`, then to `undefined`.
38+
* 'Value' or 'Add/Delete' at a field/field entry level, for a file-based field (e.g. `testDB` or `bootstrappedCoreExtensions`) opens a file picker dialogue.
39+
40+
E.g. to create a new [set]:
41+
42+
1. Visit {{chromeUrl}} _chrome://selite-settings/content/tree.xul_.
43+
2. Press 'Add a new set' (for `extensions.selite-settings.common`, or for a custom module).
44+
3. Make the set default (click at 'Default' column next to its name). However, if you're going to use several script configurations, then create a [set] for each, but don't make any set default. Then connect the sets to your [suite] folders as per {{navAssociationsManifests}}.
45+
4. Enter values.
46+
47+
## Reviewing mode
48+
In per-folder reviewing mode (e.g. at {{chromeUrl}} _chrome://selite-settings/content/tree.xul?folder=/full/path/to/folder_), clicking at 'Manifest/Definition' opens a definition of the module for that field, or a {{valuesManifest}} where the value comes from (if any). 'Set' column indicates the [set] where the value came from (if from a set).
49+
2750
# Reloading databases
2851
SeLiteSettings adds three buttons to Selenium IDE. They re-load one or two of [script DB], [app DB] or [vanilla DB] (as per the table below). These buttons do the full job on their own only if your web app uses SQLite as its DB. Otherwise apply [DataImport](DataImport).
2952

@@ -38,7 +61,7 @@ You should pause [scripts][script] while using these buttons, otherwise the [scr
3861
## Permissions
3962
Reloading databases requires your local account (which runs Firefox) to have access to delete the web [app DB] file and to create new files in the web app DB folder. That works when the app runs in locally and you started it yourself, or when it is under your home folder. Otherwise your account needs to have the access granted (e.g. via Linux/Mac OS groups or SeLinux `setfacl` - see [DrupalFramework](DrupalFramework)).
4063

41-
# Typing strings `'null'` or `'undefined'`
64+
# Entering `'null'` or `'undefined'`
4265
This is unlikely, but possible. If a freetype field has a non-null defined value (possibly empty string), then you can type in string literals `'null'` or `'undefined'` (within apostrophes or quotes) and they will be accepted as those strings. They won't get converted to Javascript null or undefined. Use a special column 'Null/Undefine' for that.
4366

4467
If a freetype field is Javascript `null` or `undefined`, you can click at its cell and change it. If you you don't change it and you hit Enter, that leaves the field as Javascript `null` or `undefined`, rather than a string literal `'null'` or `'undefined'`. So, if you'd like to enter a string literal `'null'` or `'undefined'`, enter something else first and then change it to `'null'` or `'undefined'` again.

0 commit comments

Comments
 (0)