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 Dec 13, 2023
1 parent b475912 commit d88ac89
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 @@ -1156,6 +1156,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 verify the presence of JavaScript files in the HTML source code of an active page.
They focus on validating specific JavaScript files using attributes like FileName, Text, and TextPart.

=== 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 d88ac89

Please sign in to comment.