Skip to content

Commit

Permalink
remove unnecessary dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
lsoares committed Feb 23, 2024
1 parent bb8e5c1 commit 9caa7cd
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Central** <img src="https://search.maven.org/favicon.ico" width="16" height="16"
Then, copy the declaration for your build tool. E.g.:

```kotlin
implementation("com.luissoares:selenium-testing-library:3.7.5")
implementation("com.luissoares:selenium-testing-library:3.7.6")
```

---
Expand Down
5 changes: 2 additions & 3 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ dependencies {
implementation("org.seleniumhq.selenium:selenium-java:4.18.1")
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params:5.10.2")
testImplementation("io.github.bonigarcia:webdrivermanager:5.6.4")
}

tasks.test {
Expand All @@ -29,7 +28,7 @@ java {
withJavadocJar()
}

version = "3.7.5"
version = "3.7.6"
group = "com.luissoares"

publishing {
Expand All @@ -43,7 +42,7 @@ publishing {
artifact(tasks["javadocJar"])
pom {
name.set("Selenium Testing Library")
description.set("Selenium locators that resemble the Testing Library (testing-library.com).")
description.set("Selenium locators that resemble the Testing Library (testing-library.com)")
url.set("https://github.com/lsoares/selenium-testing-library")
licenses {
license {
Expand Down
10 changes: 0 additions & 10 deletions lib/src/test/kotlin/seleniumtestinglib/DriverLifeCycle.kt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
package seleniumtestinglib

import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.remote.RemoteWebDriver
import seleniumtestinglib.interactions.User
import seleniumtestinglib.interactions.user

val driver = ChromeDriver(ChromeOptions().addArguments("--headless"))

fun RemoteWebDriver.render(body: String): User {
get(body.asDataUrl())
return user
}

internal fun String.asDataUrl() =
fun String.asDataUrl() =
"""data:text/html;charset=utf-8,<html><body>${this}</body></html>"""

0 comments on commit 9caa7cd

Please sign in to comment.