Cucumber

Cucumber text copy paste editor automation

Submitted by Dickens A S on Thu, 10/08/2020 - 18:58

Kick start notepad or text editor automation in cucumber

GitHub https://github.com/dickensas/kotlin-gradle-templates/tree/master/cucumber-cpp

You need to keep a notepad or any other text editor with some text and keep you cursor any one line

The automation will press the below sequence of keys to do a entire line copy paste 

  1. HOME
  2. SHIFT + END
  3. CTRL + C
  4. END
  5. ENTER
  6. CTRL + V

 

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("webdriver.chrome.driver", System.getProperty("user.dir")+"\\driver\\chromedriver.exe")
driver = ChromeDriver()

Given("I am on the Google search page") {
   driver.get("https:\\www.google.com")
}

GitHub https://github.com/dickensas/kotlin-gradle-templates/tree/master/cucumber

Use the above to do a google search using Selenium WebDriver and Gherkin feature