-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #214 from JeremyBellows/issue213-configurableMessa…
…geOnBrowser Issue213 configurable message on browser
- Loading branch information
Showing
5 changed files
with
186 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,171 @@ | ||
(*** hide ***) | ||
// This block of code is omitted in the generated HTML documentation. Use | ||
// it to define helpers that you do not want to show in the documentation. | ||
#I "../../bin" | ||
#r "canopy.dll" | ||
#r "WebDriver.dll" | ||
open canopy | ||
open canopy.configuration | ||
|
||
|
||
(** | ||
Configuration | ||
======================== | ||
chromeDir | ||
-- | ||
Directory for the chromedriver. | ||
Defaults to pre-set OS paths | ||
OSX: /usr/bin/ | ||
Windows: C:\ | ||
*) | ||
chromeDir <- "C:\\" | ||
|
||
(** | ||
ieDir | ||
-------- | ||
Directory for Internet Explorer. | ||
Defaults to pre-set OS paths | ||
OSX: /usr/bin/ | ||
Windows: C:\ | ||
*) | ||
ieDir <- "C:\\" | ||
|
||
(** | ||
phantomJSDir | ||
---------- | ||
Directory for phantomJS | ||
Defaults to pre-set OS paths | ||
OSX: /usr/bin/ | ||
Windows: C:\ | ||
*) | ||
phantomJSDir <- "C:\\" | ||
|
||
(** | ||
safariDir | ||
----------- | ||
Directory for Safari | ||
Defaults to pre-set OS paths | ||
OSX: /usr/bin/ | ||
Windows: C:\ | ||
*) | ||
safariDir <- "C:\\" | ||
|
||
(** | ||
elementTimeout | ||
------------------- | ||
Amount of time for the test runner to search for an element. | ||
Default is 10.0 seconds | ||
*) | ||
elementTimeout <- 10.0 | ||
|
||
(** | ||
compareTimeout | ||
----------------------- | ||
Amount of time for the test runner to spend comparing elements. | ||
Default is 10.0 seconds | ||
*) | ||
compareTimeout <- 10.0 | ||
|
||
(** | ||
pageTimeout | ||
----------------- | ||
Amount of time for the test runner to wait for the page to load. | ||
Default is 10.0 seconds | ||
*) | ||
pageTimeout <- 10.0 | ||
|
||
(** | ||
wipSleep | ||
-------- | ||
Amount of time to spend between WIP tests (Tests marked with &&&&) | ||
Default is 1.0 seconds | ||
*) | ||
wipSleep <- 1.0 | ||
|
||
(** | ||
runFailedContextsFirst | ||
----- | ||
Runs failed contexts first if the test suite has already executed. | ||
Defaults is false | ||
*) | ||
runFailedContextsFirst <- false | ||
|
||
(** | ||
reporter | ||
---------------- | ||
Reporter object that will handle how logs should be stored. | ||
Must inherit IReporter | ||
Default is ConsoleReporter | ||
*) | ||
reporter <- new reporters.ConsoleReporter() :> reporters.IReporter | ||
|
||
(** | ||
disableSuggestOtherSelectors | ||
---------------------------- | ||
Option that will disable selector suggestion if a selector fails to execute | ||
Defaults is false | ||
*) | ||
disableSuggestOtherSelectors <- false | ||
|
||
(** | ||
autoPinBrowserRightOnLaunch | ||
--------- | ||
Automatically pins the browser to the right of the screen on launch | ||
Default is true | ||
*) | ||
autoPinBrowserRightOnLaunch <- true | ||
|
||
(** | ||
throwIfMoreThanOneElement | ||
------------ | ||
Throws a CanopyMoreThanOneElementFoundException if more than one element is found using a selector | ||
Default is false | ||
*) | ||
throwIfMoreThanOneElement <- false | ||
|
||
(** | ||
configuredFinders | ||
------------ | ||
Defines functions for finding elements based on selectors | ||
Default is the following sequence | ||
findByCss | ||
findByValue | ||
findByXpath | ||
findByLabel | ||
findByText | ||
findByJQuery | ||
*) | ||
configuredFinders <- finders.defaultFinders | ||
|
||
(** | ||
writeToSelectWithOptionValue | ||
------------ | ||
TODO | ||
Default is true | ||
*) | ||
writeToSelectWithOptionValue <- true | ||
|
||
(** | ||
optimizeBySkippingIFrameCheck | ||
------------ | ||
TODO | ||
Default is false | ||
*) | ||
optimizeBySkippingIFrameCheck <- false | ||
|
||
(** | ||
optimizeByDisablingCoverageReport | ||
------------ | ||
TODO | ||
Default is false | ||
*) | ||
optimizeByDisablingCoverageReport <- false | ||
|
||
(** | ||
showInfoDiv | ||
------------ | ||
Allows information to be displayed on the browser when the puts function is called | ||
Default is true | ||
*) | ||
showInfoDiv <- true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters