File tree 4 files changed +8
-15
lines changed
src/test/kotlin/seleniumtestinglib
4 files changed +8
-15
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ Central** <img src="https://search.maven.org/favicon.ico" width="16" height="16"
15
15
Then, copy the declaration for your build tool. E.g.:
16
16
17
17
``` kotlin
18
- implementation(" com.luissoares:selenium-testing-library:3.7.5 " )
18
+ implementation(" com.luissoares:selenium-testing-library:3.7.6 " )
19
19
```
20
20
21
21
---
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ dependencies {
17
17
implementation(" org.seleniumhq.selenium:selenium-java:4.18.1" )
18
18
testImplementation(kotlin(" test" ))
19
19
testImplementation(" org.junit.jupiter:junit-jupiter-params:5.10.2" )
20
- testImplementation(" io.github.bonigarcia:webdrivermanager:5.6.4" )
21
20
}
22
21
23
22
tasks.test {
29
28
withJavadocJar()
30
29
}
31
30
32
- version = " 3.7.5 "
31
+ version = " 3.7.6 "
33
32
group = " com.luissoares"
34
33
35
34
publishing {
@@ -43,7 +42,7 @@ publishing {
43
42
artifact(tasks[" javadocJar" ])
44
43
pom {
45
44
name.set(" Selenium Testing Library" )
46
- description.set(" Selenium locators that resemble the Testing Library (testing-library.com). " )
45
+ description.set(" Selenium locators that resemble the Testing Library (testing-library.com)" )
47
46
url.set(" https://github.com/lsoares/selenium-testing-library" )
48
47
licenses {
49
48
license {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
package seleniumtestinglib
2
2
3
+ import org.openqa.selenium.chrome.ChromeDriver
4
+ import org.openqa.selenium.chrome.ChromeOptions
3
5
import org.openqa.selenium.remote.RemoteWebDriver
4
6
import seleniumtestinglib.interactions.User
5
7
import seleniumtestinglib.interactions.user
6
8
9
+ val driver = ChromeDriver (ChromeOptions ().addArguments(" --headless" ))
10
+
7
11
fun RemoteWebDriver.render (body : String ): User {
8
12
get(body.asDataUrl())
9
13
return user
10
14
}
11
15
12
- internal fun String.asDataUrl () =
16
+ fun String.asDataUrl () =
13
17
""" data:text/html;charset=utf-8,<html><body>${this } </body></html>"""
You can’t perform that action at this time.
0 commit comments