You can now automate game testing through python3 as well.
Starting with gamium 2.0.0, python is officially supported. If you want to automate game testing through python, please refer to the code below.

import uuid
from gamium import *


gamium = GamiumClient("127.0.0.1", 50061)
gamium.connect()
ui = gamium.ui()


def create_account():
    ret = ui.try_find(By.path("/Canvas[1]/Start[1]/DeleteAccountButton[1]"))
    if ret.success and (ret.value.try_wait_interactable()).success:
        ret.value.click()
    ui.click(By.path("/Canvas[1]/Login[1]/Panel[1]/GuestLoginBtn[1]"))
    ui.set_text(By.path("/Canvas[1]/Register[1]/InputField[1]"), str(uuid.uuid4()))
    ui.click(By.path("/Canvas[1]/Register[1]/OkBtn[1]"))
    ui.click(By.path("/Canvas[1]/Start[1]/Desc[1]"))


create_account()

The code above connects to the Gamium Engine, finds the delete account, create account buttons, etc., and creates an account.


How about this? It's simpler than you think, isn't it? For more information, please refer to the gamium introduction document and gamium github.