This repository was archived by the owner on Mar 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
webtester-documentation/src/main/asciidoc Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ == Kotlin
2+
3+ Since version 2.3 WebTester supports the use of Kotlin. Up until then the
4+ declarative nature of WebTester would not work with the way Kotlin is implementing
5+ default methods on interfaces.
6+
7+ In order to work with Kotlin, you must add the `webtester-kotlin` module to your
8+ test dependencies. Within this module you'll find two classes:
9+
10+ * `info.novatec.testit.webtester.kotlin.pages.Page`
11+ * `info.novatec.testit.webtester.kotlin.pagefragments.PageFragment`
12+
13+ Both of these are alias classes for their corresponding Java counterparts.
14+ In addition to providing a more Kotlin-esk API, their use will also act as
15+ a flag for WebTester to consider Kotlin when it's generating code.
16+
17+ Other than using these special classes when creating pages and page fragments,
18+ everything else should work the same as with Java.
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ include::chapters/annotations.asciidoc[]
1919include::chapters/utilities.asciidoc[]
2020
2121include::chapters/support-modules.asciidoc[]
22+
23+ include::chapters/kotlin.asciidoc[]
You can’t perform that action at this time.
0 commit comments