Skip to content

Commit

Permalink
Add document and change the syntax on the Script Steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Khodyka Liubov authored and Khodyka Liubov committed Nov 28, 2023
1 parent 74c1327 commit 2b2d4f9
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions docs/modules/plugins/pages/plugin-web-app.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,64 @@ When I click on a button with the name 'Toggle element visibility with delay'
Then element located by 'xpath(//div[@id='delayed'])' disappears in 'PT3S'
----

==== Script Steps

WARNING: These steps are deprecated and will be removed in VIVIDUS 0.8.0.

The Script Steps checks for validate the presence of JavaScript files within the HTML source code of an active page.
These steps primarily focus on verifying the existence of specific JavaScript files based on Filename, Text and TextPart attributes.

=== The script steps on FileName attributes.

These step primarily focus on checking for the existence of certain JavaScript files based on Filename attributes.

[source,gherkin]
----
Then a javascript file with the name '$jsFileName' is included in the source code
----

* `$jsFileName` - The JavaScript FileName. In order to save a result return statement should be used.

.Checks the script for the presence of a document by name
[source,gherkin]
----
Then a javascript file with the name '$jsFileName' is included in the source code
----

=== The script steps on Text attributes.

These step primarily focus on checking for the existence of certain JavaScript files based on Text attributes.

[source,gherkin]
----
Then a javascript with the text '$jsText' is included in the source code
----

* `$jsText` - The JavaScript Text. In order to save a result return statement should be used.

.Checks the script for the presence of a document by text
[source,gherkin]
----
Then a javascript with the text '$jsText' is included in the source code
----

=== The script steps on TextPart attributes.

These step primarily focus on checking for the existence of certain JavaScript files based on TextPart attributes.

[source,gherkin]
----
Then a javascript file with the name '$jsTextPart' is included in the source code
----

* `$jsTextPart` - The JavaScript TextPart. In order to save a result return statement should be used.

.Checks the script for the presence of a document by TextPart
[source,gherkin]
----
Then a javascript file with the name '$jsTextPart' is included in the source code
----

=== Set Variable Steps

==== Save HTML table to the variable
Expand Down

0 comments on commit 2b2d4f9

Please sign in to comment.