From 8fa5f120d69bc9e5131ab6383537171cef4c2638 Mon Sep 17 00:00:00 2001 From: Devansh Pandey Date: Wed, 8 Oct 2025 15:07:11 +0530 Subject: [PATCH 1/5] added Kotlin waits tests --- .../kotlin/dev/selenium/waits/WaitsTest.kt | 65 +++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt diff --git a/examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt b/examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt new file mode 100644 index 000000000000..13b9e9c9797a --- /dev/null +++ b/examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt @@ -0,0 +1,65 @@ +package dev.selenium.waits + +import dev.selenium.BaseTest +import org.junit.jupiter.api.Assertions +import org.junit.jupiter.api.Test +import org.openqa.selenium.By +import org.openqa.selenium.ElementNotInteractableException +import org.openqa.selenium.WebDriver +import org.openqa.selenium.support.ui.FluentWait +import org.openqa.selenium.support.ui.Wait +import org.openqa.selenium.support.ui.WebDriverWait +import java.time.Duration + + +class WaitsTest : BaseTest() { + + @Test + fun implicit() { + driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(2)) + driver.get("https://www.selenium.dev/selenium/web/dynamic.html") + driver.findElement(By.id("adder")).click() + + val added = driver.findElement(By.id("box0")) + + Assertions.assertEquals("redbox",added.getDomAttribute("class")) + + } + + @Test + fun explicit() { + + driver.get("https://www.selenium.dev/selenium/web/dynamic.html") + val revealed = driver.findElement(By.id("revealed")) + driver.findElement(By.id("reveal")).click() + + val wait = WebDriverWait(driver, Duration.ofSeconds(2)) + wait.until { revealed.isDisplayed } + + revealed.sendKeys("Displayed") + Assertions.assertEquals("Displayed", revealed.getDomProperty("value")) + } + + @Test + fun explicitWithOptions() { + + driver.get("https://www.selenium.dev/selenium/web/dynamic.html") + + val revealed = driver.findElement(By.id("revealed")) + driver.findElement(By.id("reveal")).click() + + val wait: Wait = + FluentWait(driver) + .withTimeout(Duration.ofSeconds(2)) + .pollingEvery(Duration.ofMillis(300)) + .ignoring(ElementNotInteractableException::class.java) + + wait.until { + revealed.sendKeys("Displayed") + true + } + + Assertions.assertEquals("Displayed", revealed.getDomProperty("value")) + } + +} \ No newline at end of file From 99d19bdbeac7e303d93398a223be60bba76a0bdc Mon Sep 17 00:00:00 2001 From: Devansh Pandey Date: Wed, 8 Oct 2025 15:12:57 +0530 Subject: [PATCH 2/5] added link to kotlin waits tests --- .../content/documentation/webdriver/waits.en.md | 6 +++--- .../content/documentation/webdriver/waits.ja.md | 6 +++--- .../content/documentation/webdriver/waits.pt-br.md | 6 +++--- .../content/documentation/webdriver/waits.zh-cn.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/waits.en.md b/website_and_docs/content/documentation/webdriver/waits.en.md index 75a0ff3528ef..16e39c29f836 100644 --- a/website_and_docs/content/documentation/webdriver/waits.en.md +++ b/website_and_docs/content/documentation/webdriver/waits.en.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.ja.md b/website_and_docs/content/documentation/webdriver/waits.ja.md index af33834feaea..8be57e299a0d 100644 --- a/website_and_docs/content/documentation/webdriver/waits.ja.md +++ b/website_and_docs/content/documentation/webdriver/waits.ja.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.pt-br.md b/website_and_docs/content/documentation/webdriver/waits.pt-br.md index e5e3b47f0a08..176c85a86ce7 100644 --- a/website_and_docs/content/documentation/webdriver/waits.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/waits.pt-br.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md index 7aee4f2b557f..b828dec848ba 100644 --- a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md @@ -92,7 +92,7 @@ Selenium 内置了一种自动等待元素出现的方式, 称为 _隐式等待_ {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -133,7 +133,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -174,7 +174,7 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< badge-code >}} +{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} From 00da4d9d5e7fc52306f76f488fe71e10c239f4c8 Mon Sep 17 00:00:00 2001 From: DNotNice Date: Wed, 8 Oct 2025 21:41:23 +0530 Subject: [PATCH 3/5] fixed add --- .../content/documentation/webdriver/waits.en.md | 6 +++--- .../content/documentation/webdriver/waits.ja.md | 6 +++--- .../content/documentation/webdriver/waits.pt-br.md | 6 +++--- .../content/documentation/webdriver/waits.zh-cn.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/waits.en.md b/website_and_docs/content/documentation/webdriver/waits.en.md index 16e39c29f836..7fd1360d129b 100644 --- a/website_and_docs/content/documentation/webdriver/waits.en.md +++ b/website_and_docs/content/documentation/webdriver/waits.en.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.ja.md b/website_and_docs/content/documentation/webdriver/waits.ja.md index 8be57e299a0d..1111fe717188 100644 --- a/website_and_docs/content/documentation/webdriver/waits.ja.md +++ b/website_and_docs/content/documentation/webdriver/waits.ja.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.pt-br.md b/website_and_docs/content/documentation/webdriver/waits.pt-br.md index 176c85a86ce7..91493619ed17 100644 --- a/website_and_docs/content/documentation/webdriver/waits.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/waits.pt-br.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md index b828dec848ba..36aedd31f2f8 100644 --- a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md @@ -92,7 +92,7 @@ Selenium 内置了一种自动等待元素出现的方式, 称为 _隐式等待_ {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -133,7 +133,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -174,7 +174,7 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/tests/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} From 65df04a333f6c0bb9ba730e16ed39d2850135ec1 Mon Sep 17 00:00:00 2001 From: DNotNice Date: Wed, 8 Oct 2025 21:48:48 +0530 Subject: [PATCH 4/5] fixed address --- .../content/documentation/webdriver/waits.en.md | 6 +++--- .../content/documentation/webdriver/waits.ja.md | 6 +++--- .../content/documentation/webdriver/waits.pt-br.md | 6 +++--- .../content/documentation/webdriver/waits.zh-cn.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/waits.en.md b/website_and_docs/content/documentation/webdriver/waits.en.md index 7fd1360d129b..20fbda24efc4 100644 --- a/website_and_docs/content/documentation/webdriver/waits.en.md +++ b/website_and_docs/content/documentation/webdriver/waits.en.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.ja.md b/website_and_docs/content/documentation/webdriver/waits.ja.md index 1111fe717188..db104f259689 100644 --- a/website_and_docs/content/documentation/webdriver/waits.ja.md +++ b/website_and_docs/content/documentation/webdriver/waits.ja.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.pt-br.md b/website_and_docs/content/documentation/webdriver/waits.pt-br.md index 91493619ed17..02c11f96b954 100644 --- a/website_and_docs/content/documentation/webdriver/waits.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/waits.pt-br.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md index 36aedd31f2f8..5eccdc0b5856 100644 --- a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md @@ -92,7 +92,7 @@ Selenium 内置了一种自动等待元素出现的方式, 称为 _隐式等待_ {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -133,7 +133,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -174,7 +174,7 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " /examples/kotlin/test/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} From bb28b4e5e0b7dfb3b72c7f4d6ec546bea1ceacae Mon Sep 17 00:00:00 2001 From: DNotNice Date: Wed, 8 Oct 2025 21:53:40 +0530 Subject: [PATCH 5/5] fix addresses --- .../content/documentation/webdriver/waits.en.md | 6 +++--- .../content/documentation/webdriver/waits.ja.md | 6 +++--- .../content/documentation/webdriver/waits.pt-br.md | 6 +++--- .../content/documentation/webdriver/waits.zh-cn.md | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/waits.en.md b/website_and_docs/content/documentation/webdriver/waits.en.md index 20fbda24efc4..65483bddbea4 100644 --- a/website_and_docs/content/documentation/webdriver/waits.en.md +++ b/website_and_docs/content/documentation/webdriver/waits.en.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= "examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.ja.md b/website_and_docs/content/documentation/webdriver/waits.ja.md index db104f259689..815a31a9622c 100644 --- a/website_and_docs/content/documentation/webdriver/waits.ja.md +++ b/website_and_docs/content/documentation/webdriver/waits.ja.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.pt-br.md b/website_and_docs/content/documentation/webdriver/waits.pt-br.md index 02c11f96b954..88cf8601db61 100644 --- a/website_and_docs/content/documentation/webdriver/waits.pt-br.md +++ b/website_and_docs/content/documentation/webdriver/waits.pt-br.md @@ -82,7 +82,7 @@ Solving our example with an implicit wait looks like this: {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -118,7 +118,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -154,6 +154,6 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}} diff --git a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md index 5eccdc0b5856..1baf4c95a229 100644 --- a/website_and_docs/content/documentation/webdriver/waits.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/waits.zh-cn.md @@ -92,7 +92,7 @@ Selenium 内置了一种自动等待元素出现的方式, 称为 _隐式等待_ {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L39" >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L19" >}} {{< /tab >}} {{< /tabpane >}} @@ -133,7 +133,7 @@ JavaScript also supports [Expected Conditions]({{< ref "support_features/expecte {{< gh-codeblock path="/examples/javascript/test/waits/waits.spec.js#L52" >}} {{% /tab %}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L36-L37" >}} {{< /tab >}} {{< /tabpane >}} @@ -174,7 +174,7 @@ The easiest way to customize Waits in Java is to use the `FluentWait` class: {{< badge-code >}} {{< /tab >}} {{< tab header="Kotlin" >}} -{{< gh-codeblock path= " examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} +{{< gh-codeblock path="examples/kotlin/src/test/kotlin/dev/selenium/waits/WaitsTest.kt#L51-L60" >}} {{< /tab >}} {{< /tabpane >}}