ProductPromotion
Logo

Kotlin

made by https://0x3d.site

GitHub - qwertukg/SeleniumBuilder: Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style
Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style - qwertukg/SeleniumBuilder
Visit Site

GitHub - qwertukg/SeleniumBuilder: Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style

GitHub - qwertukg/SeleniumBuilder: Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style

SeleniumBuilder

DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style

Sample

driver(ChromeDriver()) { 
    get("http://cool-website.com")
    
    elementByClass("login") {
        sendKeys("[email protected]")
    }

    elementByName("password") {
        sendKeys("123456")
        submit()
    }
    
    element(By.className("search")) {
        sendKeys("kotlin")
    }
    
    wait(10) {
        elementVisibilityById("result-item") {
            elementByClass("salary") {
                item.salary = text
            }
        }
    }
}

Total function list

Driver builders

driver(driver: WebDriver) {}

chromeDriver {}

chromeDriver(pathToDriver: String) {}

firefoxDriver {}

firefoxDriver(pathToDriver: String) {}

WebDriver and WebElement element builders

element(by: By) {}

elementById(id: String) {}

elementByClass(className: String) {}

elementByName(name: String) {}

elementBySelector(selector: String) {}

elementByXpath(selector: String) {}

WebDriver and WebElement element list builders

elements(by: By) {}

elementsById(id: String) {}

elementsByClass(className: String) {}

elementsByName(name: String) {}

elementsBySelector(selector: String) {}

elementsByXpath(selector: String) {}

WebDriver and WebElement element exists functions

elementExists(by: By): Boolean

elementByIdExists(id: String): Boolean

elementByClassExists(className: String): Boolean

elementByNameExists(name: String): Boolean

elementBySelectorExists(selector: String): Boolean

elementByXpathExists(selector: String): Boolean

WebDriver WebDriverWait builder

wait(timeout: Long) {}

WebDriverWait element visibility builders

elementVisibility(by: By) {}

elementVisibilityById(id: String) {}

elementVisibilityByClass(className: String) {}

elementVisibilityByName(name: String) {}

elementVisibilityBySelector(selector: String) {}

elementVisibilityByXpath(xpath: String) {}

WebDriverWait element invisibility functions

elementInvisibility(by: By): Boolean

elementInvisibilityById(id: String): Boolean

elementInvisibilityByClass(className: String): Boolean

elementInvisibilityByName(name: String): Boolean

elementInvisibilityBySelector(selector: String): Boolean

elementInvisibilityByXpath(xpath: String): Boolean

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory