Call Python from Kotlin or embed Python code inside Kotlin

Submitted by Dickens A S on Fri, 11/22/2019 - 11:47

Embedded Python inside Kotlin


Compile and Execute from MSYS2 or Cygwin with python development C header files

Demo output

Embed Python

Python code which is running inside Kotlin

Cucumber browser automation with Kotlin

Submitted by Dickens A S on Wed, 11/06/2019 - 15:45

Kick start browser automation in cucumber using kotlin

System.setProperty("", System.getProperty("user.dir")+"\\driver\\chromedriver.exe")
driver = ChromeDriver()

Given("I am on the Google search page") {


KotlinX HTML with coroutines

Submitted by Dickens A S on Mon, 11/04/2019 - 16:10

use KotlinX with coroutines to create a delay in HTML rendering


var detectDiv = GlobalScope.launch {
	delay(2000L) //wait for 2 second browser ready hack
	val myDiv = document.create.div {
		p { +"some text " }
		div { +"my div tag" }

	var root = document.getElementById("root")