GO-vatar series: Android and Golang alliance to form an automation

https://hsto.org/files/31c/b52/87b/31cb5287bccd4013b9e8ed2b4b448edd.png
var (  btnMasuk      = "Masuk"  btnMengerti   = "//*[contains(text(), 'Mengerti')]"  btnNantiSaja  = ".qa-nanti-saja-button")
if Device, err := Driver.NewDevice(); err != nil {
log.Fatalln(aurora.Bold(aurora.Red(err))) }

Method action

What is method action? Method that do something like click or input text.

appsaction.ClickByXPath(btnMengerti)

Method validation

There is action, there is validation. I want to validate the the button I clicked, can direct me to the correct page (Let’s say the home page).

Step definitions

After we create action/validation method and page object, the next step is set the step definitions.

mpermperpisang official Medium account..MperMperPisang World on Youtube

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store