Last active
August 12, 2021 09:53
-
-
Save ptrthomas/ac04f3501f608534f588d4e539b804c5 to your computer and use it in GitHub Desktop.
Karate vs Taiko
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Feature: customer manager | |
Background: | |
* driver 'http://localhost:3000' | |
Scenario: | |
* match driver.title == 'Angular TypeScript JumpStart App' | |
* click('{}Login') | |
* rightOf('{}Email:').input('[email protected]') | |
* rightOf('{}Password:').input('password1234') | |
* click('{button}Login') | |
* waitFor('{}Logout') | |
* below('{}Filter:').input('ted') | |
* waitForResultCount('{}View Orders', 1) | |
* click('{}New Customer') | |
* below('{}First Name').input('first name') | |
* below('{}Last Name').input('last name') | |
* below('{}Address').input('address') | |
* below('{}City').input('city') | |
* below('{}State').select(0) | |
* click('{}Insert') | |
* click('{a}3') | |
* waitFor('{a}First name Last name').click() | |
* waitFor('{^}Edit Customer').retry().click().delay(100) | |
* waitFor('{}First Name').below().input('updated') | |
* waitForEnabled('{}Update').click() | |
* waitFor('{^}Customer Details').click() | |
* waitFor('{^}First nameupdated Last name') | |
* click('{}Customer Manager') | |
* near('{}Ted James').find('{a}View Orders').click() | |
* waitFor('{}Basketball') | |
* waitFor('{}Shoes') | |
* waitFor('{}$207.98') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
side-by-side code comparison and video: https://twitter.com/ptrthomas/status/1185212072633569280
link to Taiko code: https://github.com/getgauge-contrib/compareBrowserAutomationTools/blob/b848088ee831d07f1f080a678bb3fe5874df7a71/comparePerformanceAndReliableWaitsOfTools/benchmarks/testcafe/tests/customerManager.test.js
Karate "friendly locators" documentation: https://github.com/intuit/karate/tree/develop/karate-core#friendly-locators