ProtractorFrameworkAdapter
|
ProtractorFrameworkAdapter |
to meet the requirements described in "Framework Adapters for Protractor"
|
- |
produces a Protractor report that
|
- |
describes no test results if no tests were executed
|
- |
describes successful tests
|
- |
describes failing tests
|
- |
describes both successful and failing tests
|
- |
invokes runner.runTestPreparer before executing the tests
|
- |
invokes runner.getConfig().onComplete() after executing the tests
|
- |
when a test succeeds
|
- |
invokes runner.emit with a "testPass" message
|
- |
invokes runner.afterEach after each test
|
- |
when a test fails
|
- |
invokes runner.emit with a "testFail" message
|
- |
invokes runner.afterEach after each test
|
- |
error handling
|
- |
fails the test run when runner.afterEach errors out
|
- |
fails the test run when runner.afterEach rejects the promise
|
- |
configuration
|
- |
provides sensible defaults when no explicit configuration is provided
|
- |
allows for the defaults to be overridden
|
- |
StandardisedCapabilities
|
- |
See the ProtractorFrameworkAdapter specs to see how the ProtractorReporter is used in the context
|
- |
with default threshold
|
- |
with custom threshold
|
- |
TestRunnerDetector
|
TestRunnerDetector |
when using TestRunnerAdapter for
|
- |
Cucumber
|
- |
spec/adapter/runner/TestRunnerDetector.spec.ts |
- |
uses the configured runner even when configuration for other runners is present as well
|
- |
uses Cucumber test runner when cucumberOpts are present in config
|
- |
merges cucumberOpts present in capabilities with root config
|
- |
instructs TestRunnerLoader
|
- |
to take over standard output when the config
|
- |
defines serenity.crew and there is no cucumberOpts.format specified
|
- |
defines serenity.crew and there is a cucumberOpts.format specified
|
- |
to redirect output to a temp file when the config
|
- |
does not specify serenity.crew and there are is no cucumberOpts.format specified either
|
- |
does not specify serenity.crew, but there is a cucumberOpts.format specified
|
- |
make the formatter output files unique when the config
|
- |
specifies multiCapabilities
|
- |
specifies shardTestFiles
|
- |
Jasmine
|
- |
uses Jasmine TestRunnerAdapter when no other runners are specified
|
- |
spec/adapter/runner/TestRunnerDetector.spec.ts |
- |
uses the configured runner even when configuration for other runners is present as well
|
- |
uses Jasmine test runner when jasmineNodeOpts are present in config
|
- |
merges jasmineNodeOpts present in capabilities with root config
|
- |
Mocha
|
- |
spec/adapter/runner/TestRunnerDetector.spec.ts |
- |
uses the configured runner even when configuration for other runners is present as well
|
- |
uses Mocha test runner when jasmineNodeOpts are present in config
|
- |
merges mochaOpts present in capabilities with root config
|
- |
when loading a TestRunnerAdapter for
|
- |
Jasmine
|
- |
passes the configuration to the adapter
|
- |
Mocha
|
- |
passes the configuration to the adapter
|
- |
Cucumber
|
- |
resolves glob patterns in require to absolute paths
|
- |
isActive
|
- |
allows the actor flow to continue when the element is active
|
isActive |
breaks the actor flow when element is inactive
|
isActive |
contributes to a human-readable description of an assertion
|
isActive |
contributes to a human-readable description of a wait
|
isActive |
isClickable
|
- |
allows the actor flow to continue when the element is clickable
|
isClickable |
breaks the actor flow when element is disabled
|
isClickable |
breaks the actor flow when element is not visible
|
isClickable |
contributes to a human-readable description of an assertion
|
isClickable |
contributes to a human-readable description of a wait
|
isClickable |
isEnabled
|
- |
allows the actor flow to continue when the element is enabled
|
isEnabled |
breaks the actor flow when element is disabled
|
isEnabled |
contributes to a human-readable description of an assertion
|
isEnabled |
contributes to a human-readable description of a wait
|
isEnabled |
isPresent
|
- |
allows the actor flow to continue when the element is present in the DOM
|
isPresent |
breaks the actor flow when element does not become present in the DOM
|
isPresent |
breaks the actor flow when element is not present in the DOM
|
isPresent |
spec/expectations/isPresent.spec.ts |
isPresent |
contributes to a human-readable description of an assertion
|
isPresent |
contributes to a human-readable description of a wait
|
isPresent |
isSelected
|
- |
allows the actor flow to continue when the element is selected
|
isSelected |
breaks the actor flow when element is not selected
|
isSelected |
breaks the actor flow when element is not present
|
isSelected |
contributes to a human-readable description of an assertion
|
isSelected |
contributes to a human-readable description of a wait
|
isSelected |
isVisible
|
- |
allows the actor flow to continue when the element is visible
|
isVisible |
breaks the actor flow when element is not visible
|
isVisible |
contributes to a human-readable description of an assertion
|
isVisible |
contributes to a human-readable description of a wait
|
isVisible |
Clear
|
- |
allows the actor to clear the value of an empty input
|
Clear.theValueOf |
does not affect elements with no "value" attribute
|
Clear.theValueOf |
allows the actor to clear the value of an input field
|
Clear.theValueOf |
allows the actor to clear the value of an number field
|
Clear.theValueOf |
allows the actor to clear the value of a date field
|
Clear.theValueOf |
allows the actor to clear the value of an RTL input field
|
Clear.theValueOf |
complains if the element cannot be cleared
|
Clear.theValueOf |
provides a sensible description of the interaction being performed
|
Clear#toString |
Click
|
Click |
allows the actor to click on an element
|
Click.on |
provides a sensible description of the interaction being performed
|
Click#toString |
Close
|
Close |
anyNewWindows()
|
- |
should close any new windows and switch back to the original window
|
Close.anyNewWindows |
should do nothing if no new windows have been opened
|
Close.anyNewWindows |
should provide a sensible description of the interaction being performed
|
Close#toString |
currentWindow()
|
- |
should close the current window
|
Close.currentWindow |
should provide a sensible description of the interaction being performed
|
Close#toString |
DoubleClick
|
- |
allows the actor to clear the value of a field
|
DoubleClick.on |
provides a sensible description of the interaction being performed
|
DoubleClick#toString |
Enter
|
Enter |
allows the actor to enter the value into an input field
|
Enter.theValue |
allows the actor to enter the value into a number field
|
Enter.theValue |
provides a sensible description of the interaction being performed
|
Enter#toString |
Hover
|
Hover |
allows the actor to position the mouse cursor over a given target
|
Hover.over |
provides a sensible description of the interaction being performed
|
Hover#toString |
Navigate
|
Navigate |
to(url)
|
- |
allows the actor to navigate to a desired destination
|
Navigate.to |
spec/screenplay/interactions/Navigate.spec.ts |
Navigate.to |
provides a sensible description of the interaction being performed
|
Navigate#toString |
to(url).withTimeout(duration)
|
- |
provides a sensible description of the interaction being performed
|
Navigate#toString |
back
|
- |
allows the actor to navigate back in the browser history
|
Navigate.back |
provides a sensible description of the interaction being performed
|
Navigate#toString |
forward
|
- |
allows the actor to navigate forward in the browser history
|
Navigate.forward |
provides a sensible description of the interaction being performed
|
Navigate#toString |
reloadPage
|
- |
allows the actor to navigate to a desired destination
|
Navigate.reloadPage |
provides a sensible description of the interaction being performed
|
Navigate#toString |
Press
|
Press |
single keys
|
- |
allows the actor to enter keys individually into a field
|
Press.the |
keyboard shortcuts
|
- |
allows the actor to use keyboard shortcuts
|
Press.the |
ResizeBrowserWindow
|
ResizeBrowserWindow |
spec/screenplay/interactions/ResizeBrowserWindow.spec.ts |
- |
allows the actor to change width and height of the browser window
|
ResizeBrowserWindow.to |
produces a sensible description of the interaction being performed
|
ResizeBrowserWindow#toString |
toMaximum()
|
- |
allows the actor to resize browser window to maximum
|
ResizeBrowserWindow.toMaximum |
produces a sensible description of the interaction being performed
|
ResizeBrowserWindow#toString |
RightClick
|
RightClick |
allows the actor to click on an element
|
RightClick.on |
provides a sensible description of the interaction being performed
|
RightClick#toString |
Scroll
|
Scroll |
allows the actor to scroll to a given target so that it appears in the viewport
|
Scroll.to |
provides a sensible description of the interaction being performed
|
Scroll#toString |
Select
|
Select |
when working with single-option selects
|
- |
Select.value()
|
- |
should select a single option by its static value
|
Selected.valueOf |
should select a single option by its Answerable value
|
Selected.valueOf |
Select.option()
|
- |
should select a single option by its static pageName
|
Selected.optionIn |
should select a single option by its Answerable name
|
Selected.optionIn |
when working with multi-option selects
|
- |
Select.values()
|
- |
should select multiple options by their static value
|
Selected.valuesOf |
should select multiple options by their Answerable value
|
Selected.valuesOf |
should concatenate option values from several Answerables
|
Selected.valuesOf |
should concatenate option values from several static values
|
Selected.valuesOf |
Select.options()
|
- |
should select multiple options by their static pageName
|
Selected.optionsIn |
should select multiple options by their Answerable name
|
Selected.optionsIn |
should concatenate option values from several Answerables
|
Selected.optionsIn |
should concatenate option values from several static values
|
Selected.optionsIn |
toString()
|
- |
provides a sensible description of Select.value()
|
Select#toString |
provides a sensible description of Selected.valueOf
|
Select#toString |
provides a sensible description of Select.option()
|
Select#toString |
provides a sensible description of Selected.optionIn()
|
Select#toString |
provides a sensible description of Select.values()
|
Select#toString |
provides a sensible description of Select.valuesOf()
|
Select#toString |
provides a sensible description of Select.options()
|
Select#toString |
provides a sensible description of Selected.optionsIn()
|
Select#toString |
Switch
|
Switch |
when working with frames
|
- |
toFrame()
|
- |
spec/screenplay/interactions/Switch.spec.ts |
Switch.toFrame |
should switch to an iframe identified by Question<ElementFinder>
|
Switch.toFrame |
should switch to an iframe identified by index
|
Switch.toFrame |
should switch to an iframe identified by name
|
Switch.toFrame |
should provide a sensible description when the iframe
|
- |
is specified by Question<ElementFinder>
|
Switch#toString |
is specified by index number
|
Switch#toString |
is specified by name
|
Switch#toString |
toParentFrame()
|
- |
should not switch the frame if there are no parent frames
|
Switch.toParentFrame |
should switch to the parent hosting an iframe
|
Switch.toParentFrame |
should support nested frames
|
Switch.toParentFrame |
should provide a sensible description of the interaction being performed
|
Switch#toString |
toDefaultContent()
|
- |
should not switch the frame if there are no parent frames
|
Switch.toDefaultContent |
should support nested frames
|
Switch.toDefaultContent |
should provide a sensible description of the interaction being performed
|
Switch#toString |
toFrame().and()
|
- |
should perform any activities in the context of the frame it switched to
|
Switch.toFrame |
should provide a sensible description of the interaction being performed
|
Switch#toString |
when working with windows
|
- |
toWindow()
|
- |
should switch to a window identified by its index
|
Switch.toWindow |
should switch to a window identified by its name
|
Switch.toWindow |
spec/screenplay/interactions/Switch.spec.ts |
Switch.toWindow |
should provide a sensible description when the window
|
- |
is specified by its index
|
Switch#toString |
is specified by name
|
Switch#toString |
toWindow().and()
|
- |
should perform any activities in the context of the window it switched to
|
Switch.toWindow |
should provide a sensible description of the interaction being performed
|
Switch#toString |
spec/screenplay/interactions/Switch.spec.ts |
- |
spec/screenplay/interactions/Switch.spec.ts |
Switch.toNewWindow |
should switch to a newly opened window
|
Switch.toNewWindow |
should provide a sensible description of the interaction being performed
|
Switch#toString |
toNewWindow().and()
|
- |
should perform any activities in the context of the new window it switched to
|
Switch.toNewWindow |
should provide a sensible description of the interaction being performed
|
Switch#toString |
spec/screenplay/interactions/Switch.spec.ts |
- |
spec/screenplay/interactions/Switch.spec.ts |
Switch.toOriginalWindow |
should switch back from a newly opened window
|
Switch.toOriginalWindow |
should provide a sensible description of the interaction being performed
|
Switch#toString |
TakeScreenshot
|
TakeScreenshot |
allows the actor to take a screenshot with an arbitrary name
|
TakeScreenshot.of |
provides a sensible description of the interaction being performed
|
TakeScreenshot#toString |
UseAngular
|
UseAngular |
synchronisation
|
- |
when enabled
|
- |
can be disabled
|
UseAngular.disableSynchronisation |
when disabled
|
- |
can be enabled
|
UseAngular.enableSynchronisation |
provides a sensible description of the interaction being performed
|
UseAngular.disableSynchronisation |
Wait
|
Wait |
for
|
- |
pauses the actor flow for the length of an explicitly-set duration
|
Wait.for |
provides a sensible description of the interaction being performed
|
Wait#toString |
until
|
- |
pauses the actor flow until the expectation is met
|
Wait.until |
fails the actor flow when the timeout expires
|
Wait.until |
provides a sensible description of the interaction being performed
|
Wait#toString |
ExecuteAsynchronousScript
|
ExecuteScript |
allows the actor to execute an asynchronous script
|
ExecuteAsynchronousScript |
allows the actor to execute an asynchronous script with a static argument
|
ExecuteAsynchronousScript |
allows the actor to execute an asynchronous script with a promised argument
|
ExecuteAsynchronousScript |
allows the actor to execute an asynchronous script with a Target argument
|
ExecuteAsynchronousScript |
provides a sensible description of the interaction being performed when invoked without arguments
|
ExecuteAsynchronousScript#toString |
provides a sensible description of the interaction being performed when invoked with arguments
|
ExecuteAsynchronousScript#toString |
complains if the script has failed
|
ExecuteAsynchronousScript |
emits the events so that the details of the script being executed can be reported
|
ExecuteAsynchronousScript |
ExecuteScriptFromUrl
|
ExecuteScript |
allows the actor to execute a script stored at a specific location
|
ExecuteScriptFromUrl |
complains if the script could not be loaded
|
ExecuteScriptFromUrl |
complains if the script has already been loaded
|
ExecuteScriptFromUrl |
provides a sensible description of the interaction being performed
|
ExecuteScriptFromUrl#toString |
ExecuteSynchronousScript
|
ExecuteScript |
allows the actor to execute a synchronous script
|
ExecuteSynchronousScript |
allows the actor to retrieve the value returned by the script
|
LastScriptExecution.result |
allows the actor to execute a synchronous script with a static argument
|
ExecuteSynchronousScript |
allows the actor to execute a synchronous script with a promised argument
|
ExecuteSynchronousScript |
allows the actor to execute a synchronous script with a Target argument
|
ExecuteSynchronousScript |
provides a sensible description of the interaction being performed when invoked without arguments
|
ExecuteSynchronousScript#toString |
provides a sensible description of the interaction being performed when invoked with arguments
|
ExecuteSynchronousScript#toString |
complains if the script has failed
|
LastScriptExecution |
emits the events so that the details of the script being executed can be reported
|
ExecuteSynchronousScript |
Attribute
|
- |
allows the actor to read an attribute of a DOM element
|
Attribute |
Browser
|
- |
returns no entries if the console log is empty
|
Browser.log |
allows the actor to read the browser log entries
|
Browser.log |
clears the log upon invocation
|
Browser.log |
CSSClasses
|
- |
of
|
CSSClasses.of |
allows for a question relative to another target to be asked
|
CSSClasses#of |
Cookie
|
- |
over HTTP
|
- |
when working with the value
|
- |
allows the actor to retrieve it
|
Cookie#valueOf |
returns an undefined when it can't retrieve it
|
Cookie#valueOf |
provides a sensible description of the question being asked
|
Cookie |
when working with the path
|
- |
allows the actor to retrieve it
|
Cookie#valueOf |
returns an undefined when it can't retrieve it
|
Cookie#pathOf |
provides a sensible description of the question being asked
|
Cookie |
when working with the domain
|
- |
allows the actor to retrieve it
|
Cookie#valueOf |
returns an undefined when it can't retrieve it
|
Cookie#domainOf |
provides a sensible description of the question being asked
|
Cookie |
when working with http-only cookies
|
- |
allows the actor to confirm that a cookie is http-only
|
Cookie#isHTTPOnly |
returns an undefined when it can't retrieve it
|
Cookie#isHTTPOnly |
provides a sensible description of the question being asked
|
Cookie |
when working with an expiry date
|
- |
allows the actor to retrieve it
|
Cookie#expiryDateOf |
returns an undefined when it can't retrieve it
|
Cookie#expiryDateOf |
provides a sensible description of the question being asked
|
Cookie |
when working with secure cookies
|
- |
allows the actor to confirm that a cookie is not secure
|
Cookie#isSecure |
allows the actor to confirm that a cookie is secure
|
Cookie#isSecure |
spec/screenplay/questions/Cookie.spec.ts |
Cookie#isSecure |
provides a sensible description of the question being asked
|
Cookie |
LastScriptExecution
|
LastScriptExecution |
when used with ExecuteScript.sync
|
- |
allows the actor to retrieve the result of the script execution
|
LastScriptExecution |
returns null if the script did not return any result
|
LastScriptExecution |
when used with ExecuteScript.async
|
- |
allows the actor to retrieve the result of the script execution
|
LastScriptExecution |
returns null if the script did not return any result
|
LastScriptExecution |
complains if the script hasn't been executed yet
|
LastScriptExecution |
ModalDialog,
|
ModalDialog |
when working with alert(),
|
- |
allows the actor to accept an alert
|
Accept.the |
allows the actor to dismiss an alert
|
Dismiss.the |
allows the actor to read the message on an alert
|
Dismiss.the |
when working with confirm(),
|
- |
allows the actor to accept a confirmation dialog
|
Accept.the |
allows the actor to dismiss a confirmation dialog
|
Dismiss.the |
allows the actor to read the message on a confirmation dialog
|
ModalDialog.message |
when working with prompt(),
|
- |
allows the actor to accept a prompt
|
Accept.the |
allows the actor to dismiss a prompt
|
Dismiss.the |
allows the actor to read the message on a prompt
|
ModalDialog.message |
allows the actor to enter value into a prompt
|
Enter.theValue |
when waiting
|
- |
allows the actor to wait until a modal dialog is present
|
Wait.until |
when interacting with the Photographer,
|
- |
is does not negatively impact the screenshot capture process
|
Photographer |
Pick
|
- |
(when no filters are applied)
|
- |
lets the actor interact with the list of matching elements so that it
|
- |
gets the number of items
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
picks the nth item
|
Pick |
provides a sensible description when it
|
- |
returns the number of items
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
provides a custom description when the name of its subject is overridden and it
|
- |
returns the number of items
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
picks the nth item
|
Pick |
(when a filter is applied)
|
- |
lets the actor filter the list of matching elements so that it
|
- |
gets the number of items
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
picks the nth item
|
Pick |
provides a sensible description when it
|
- |
returns the number of answers
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
(when multiple filters are applied)
|
- |
lets the actor filter the list of matching elements so that it
|
- |
gets the number of items
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
picks the nth item
|
Pick |
provides a sensible description when it
|
- |
returns the number of answers
|
Pick |
picks all the items
|
Pick |
picks the first item
|
Pick |
picks the last item
|
Pick |
(when interacting with elements on screen)
|
- |
makes it easy for an actor to pick the element of interest
|
Pick |
makes it easy for an actor to pick all elements of interest
|
Pick |
ProtractorParam
|
- |
lets the actor read the value of a primitive Protractor parameter specified in protractor.conf.js
|
ProtractorParam
ProtractorParam.called |
lets the actor read the value of an object Protractor parameter specified in protractor.conf.js
|
ProtractorParam
ProtractorParam.called |
lets the actor read the value of a Protractor parameter specified by path
|
ProtractorParam
ProtractorParam.called |
complains if the parameter is undefined
|
ProtractorParam
ProtractorParam.called |
contributes to a human-readable description of an activity
|
ProtractorParam
ProtractorParam.called |
Target
|
Target |
allows the actor to locate
|
- |
a single web element matching the selector
|
Target
Target.the
TargetElement |
all web elements matching the selector
|
Target
Target.all
TargetElements |
an element relative to another target
|
Target
Target.the
TargetNestedElement
TargetNestedElement#of |
all elements relative to another target
|
Target
Target.all
TargetNestedElements
TargetNestedElements#of |
provides a sensible description of
|
- |
an element that
|
- |
is being targeted
|
Target
Target.the
TargetElement |
has been located
|
Target
Target.the
TargetElement |
is nested
|
Target
Target.the
TargetNestedElement
TargetNestedElement#of |
elements that
|
- |
are being targeted
|
Target
Target.all
TargetElements |
have been located
|
Target
Target.all
TargetElements |
are nested
|
Target
Target.all
TargetElements#of
TargetNestedElements |
when nesting targets
|
- |
allows for Target<ElementFinder> to be nested within another Target<ElementFinder>
|
Target
Target.the
TargetElement#of
TargetNestedElement |
allows for Target<ElementFinder> to form a chain with other Target<ElementFinder>s
|
Target
Target.the
TargetElement#of
TargetNestedElement
TargetNestedElement#of |
allows for Target<ElementArrayFinder> to be nested within another Target<ElementFinder>
|
Target
Target.all
TargetElements#of
TargetNestedElements
TargetNestedElements#of |
and filtering them
|
- |
allows for nested Target<ElementArrayFinder> to be filtered
|
Target
Target.all
TargetElements#of
TargetNestedElements |
allows for nested Target<ElementArrayFinder> to be counted
|
Target
Target.all
TargetElements#of
TargetNestedElements |
allows for the first of nested Target<ElementArrayFinder> to be retrieved
|
Target
Target.all
TargetElements#of
TargetNestedElements |
allows for the last of nested Target<ElementArrayFinder> to be retrieved
|
Target
Target.all
TargetElements#of
TargetNestedElements |
allows for the nth of nested Target<ElementArrayFinder> to be retrieved
|
Target
Target.all
TargetElements#of
TargetNestedElements |
when filtering a list of targets
|
- |
and no filters are applied
|
- |
lets the actor interact with the list of matching elements so that it
|
- |
gets the number of items
|
Target
Target.all
TargetElements#count |
picks all the items
|
Target
Target.all
TargetElements |
picks the first item
|
Target
Target.all
TargetElements
TargetElements#first |
picks the last item
|
Target
Target.all
TargetElements
TargetElements#last |
picks the nth item
|
Target
Target.all
TargetElements
TargetElements#get |
provides a sensible description when it
|
- |
returns the number of items
|
Target
Target.all
TargetElements#count
TargetElements#toString |
picks all the items
|
Target
Target.all
TargetElements#toString |
picks the first item
|
Target
Target.all
TargetElements#first
TargetElements#toString |
picks the last item
|
Target
Target.all
TargetElements#last
TargetElements#toString |
and a filter is applied
|
- |
lets the actor filter the list of matching elements so that it
|
- |
gets the number of items
|
Target
Target.all
TargetElements |
picks all the items
|
Target
Target.all
TargetElements |
picks the first item
|
Target
Target.all
TargetElements |
picks the last item
|
Target
Target.all
TargetElements |
picks the nth item
|
Target
Target.all
TargetElements |
provides a sensible description when it
|
- |
returns the number of items
|
Target
Target.all |
picks all the items
|
Target
Target.all |
picks the first item
|
Target
Target.all |
picks the last item
|
Target
Target.all |
and multiple filters are applied
|
- |
lets the actor filter the list of matching elements so that it
|
- |
gets the number of items
|
Target
Target.all |
picks all the items
|
Target
Target.all |
picks the first item
|
Target
Target.all |
picks the last item
|
Target
Target.all |
picks the nth item
|
Target
Target.all |
provides a sensible description when it
|
- |
returns the number of answers
|
Target
Target.all |
picks all the items
|
Target
Target.all |
picks the first item
|
Target
Target.all |
picks the last item
|
Target
Target.all |
and interacting with elements on screen
|
- |
makes it easy for an actor to pick the element of interest
|
Target
Target.all |
makes it easy for an actor to pick all elements of interest
|
Target
Target.all |
Text
|
- |
of
|
- |
allows the actor to read the text of the DOM element matching the locator
|
Text.of |
produces a sensible description of the question being asked
|
Text#toString |
when mapping
|
- |
allows for the answer to be mapped to another type
|
Text#map |
allows for the transformations to be chained
|
Text#map |
ofAll
|
- |
allows the actor to read the text of all DOM elements matching the locator
|
Text.ofAll |
allows for a question relative to another target to be asked
|
Text.ofAll |
produces sensible description of the question being asked
|
Text#toString |
allows for the answer to be mapped
|
Text#map |
Value
|
- |
of
|
- |
allows the actor to read the "value" attribute of a DOM element matching the locator
|
Value.of |
allows the actor to read the "value" attribute of a DOM element matching the locator
|
Value#of |
allows for a question relative to another target to be asked
|
Value#of |
Website
|
- |
title
|
- |
allows the actor to read the title of the website
|
Website |
url
|
- |
allows the actor to read the URL of the website
|
Website |
spec/screenplay/questions/Website.spec.ts |
Website |
Loop
|
- |
allows the actor to perform a sequence of activities for every element given
|
- |
Photographer
|
- |
complains when sent DomainEvents before getting assigned to a Stage
|
- |
spec/stage/crew/photographer/Photographer.spec.ts |
- |
Photographer
|
- |
when instructed to take photos before and after all interactions
|
- |
takes a before and after photo when the interaction goes well
|
- |
takes a photo when a problem occurs
|
- |
takes a photo before and after Interaction, even though nested tasks might all be marked as failing
|
- |
takes two photos per interaction
|
- |
includes the browser context in the name of the emitted artifact
|
- |
Photographer
|
- |
when instructed to take a photo of failed interactions,
|
- |
does nothing if everything goes well
|
- |
takes a photo when a problem occurs
|
- |
spec/stage/crew/photographer/strategies/TakePhotosOfFailures.spec.ts |
- |
takes only one picture, even though nested tasks might all be marked as failing
|
- |
spec/stage/crew/photographer/strategies/TakePhotosOfFailures.spec.ts |
- |
Photographer
|
- |
when instructed to take a photo of all interactions
|
- |
takes a photo when the interaction goes well
|
- |
takes a photo when a problem occurs
|
- |
spec/stage/crew/photographer/strategies/TakePhotosOfInteractions.spec.ts |
- |
takes only one photo, even though nested tasks might all be marked as failing
|
- |
takes one photo per interaction
|
- |
includes the browser context in the name of the emitted artifact
|
- |
spec/stage/crew/photographer/strategies/TakePhotosOfInteractions.spec.ts |
- |