Skip to content

Commit 2ef401c

Browse files
Mostly links
1 parent ea8da5e commit 2ef401c

5 files changed

+9
-2
lines changed

JavascriptEssential.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ layout: default
1212
* Reflecting on what you intend to implement can save you unnecessary work (immediately or later).
1313
* Complexity makes coding often slow and frustrating. By documenting first, you will be free to relax with no paperwork duty once implemented.
1414
* 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.
15-
* Create [scripts][script] to be run from Selenium IDE - see [PackagedScripts](PackagedScripts).
15+
* Create [scripts][script] to be run from Selenium IDE - see [PackagedScripts](PackagedScripts).<!-- TODO move this elsewhere: it's Selense scripts, not JS.-->
1616
* Don't use fixed line length - see [DocumentationStandard](DocumentationStandard). However, split complex expressions on multiple lines.
17+
* Use ESLint. [Install it](http://eslint.org/docs/user-guide/command-line-interface) and run it as `eslint .` in both `SeLite` and `SelBlocksGlobal` folders.
18+
* Apply [Mozilla WebExtensions code style](https://wiki.mozilla.org/WebExtensions/Hacking#Code_Style).
1719

1820
# Differences from Javascript for web pages #
1921
If you've used Javascript only for web pages, you’ll find out some new terms and patterns here. This applies to development of [extensions of Selenium IDE][Extension of Selenium IDE] (including SeLite frameworks as in [GeneralFramework](GeneralFramework)) or Firefox extensions in general. They run in privileged mode. That provides extra features and it also sets some restrictions.

SelBlocksGlobal.md

+3
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ Selenium, SeLite and custom add-ons define `isXyz()` Selenese boolean accessors.
125125
if | !selenium.isVisible( 'id=pmf-navbar-collapse' )
126126
```
127127

128+
## Selenium.download
129+
If you use Windows, see [ThirdPartyIssues](ThirdPartyIssues) > [Backslashes get reduced to half](https://github.com/SeleniumHQ/selenium/issues/2215).
130+
128131
@TODO > include links
129132
@TODO DOC Selenese > ???: CombiningExpressions: Use variable `selenium` in [Core scope] for the same as what `this` keyword is in context of Selenese actions `getEval` (and related), if, while. However, in their context `this===selenium`, hence use `selenium` instead of `this`, so that it's the same as in [Core scope]. (In other scopes, e.g. in an [IDE extension] or a [Javascript code module](JavascriptComplex#javascript-code-modules), load `SeLiteMisc` code module and use `SeLiteMisc.selenium` instead<!--TODO example of loading-->.)
130133
-> So, unless you need a result of a Javascript expression in multiple places in the same Selenese part or the same Selenese function, don't call `storeEval` but use [EnhancedSelenese](EnhancedSelenese) to pass the Javascript expression directly within pairs `<>...<>` (or `=<>...<>` if the result can be other than a string). This minimises use of `storeEval` and auxiliary stored variables. That makes Selenese scripts shorter, clearer, more robust and reusable.

ThirdPartyIssues.md

+1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ You can turn off any notifications at [Mozilla preferences](https://bugzilla.moz
107107
| [Confusing text: Be careful with old versions!...](https://bugzilla.mozilla.org/show_bug.cgi?id=1239898) | Mozilla | Clear download instructions<br> (Can't be voted on yet) |
108108
| [Regex search in any folder tree with an empty file fails](https://netbeans.org/bugzilla/show_bug.cgi?id=257897) | NetBeans | Smooth development |
109109
| [Documentation and handling of Selenium.prototype.getXYZ functions...](https://github.com/SeleniumHQ/selenium/issues/1635) | Selenium | Reliable API |
110+
| [Backslashes get reduced to half](https://github.com/SeleniumHQ/selenium/issues/2215) | Selenium | Usability |
110111
{: .table #issues}
111112

112113
<!--

WhySeleniumIDE.md

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Following are qualities of Selenium IDE and WebDriver, as relevant to SeLite. (+
3434
* (+) no involvement of server-side programming languages
3535
* (+) convenience of single environment: the browser with Selenium IDE is one place for recording, editing and running the scripts
3636
* (-) it's for Firefox only
37+
* (+) In 2017 Firefox extensions will use [the same API](https://developer.mozilla.org/en-US/Add-ons/WebExtensions) as Opera and Chrome.
3738
* (-) it can't work with other browsers. That may be perceived as a limitation. However, there may not be much benefit in automated testing for multiple browsers, since
3839
* cross-browser libraries (like JQuery) make applications less browser-dependent
3940
* there are also application-independent themes or styles, which are tested by their producers

index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SeLite enables the following in Selenium IDE
4040
* fast development cycle for custom Javascript functionality (via [Bootstrap](Bootstrap))
4141
* robust loading of extensions honouring dependancies (through [ExtensionSequencer](ExtensionSequencer))
4242
* [Preview](Preview) presents custom reports and forms. User can preview and confirm next actions.
43-
* see also [Selenium IDE](SeleniumIDE) for productivity tips.
43+
* see also [tips on Selenium IDE](SeleniumIDE) productivity.
4444

4545
# Install
4646
SeLite is easy to install, with no server side (apart from the controlled web application itself). You need [Firefox](http://www.mozilla.org) and [Components](Components) (Selenium IDE and add-ons of SeLite family). You may want some [AddOnsThirdParty](AddOnsThirdParty).

0 commit comments

Comments
 (0)