Copy steps:
- prompt: input email ${TD_TEST_USERNAME} then press continue
commands:
- command: hover-text
text: Email address
description: email input field label
action: click
- command: type
text: ${TD_USERNAME}
- command: hover-text
text: CONTINUE
description: continue button below the email input
action: click
- prompt: input password ${TD_TEST_PASSWORD} then click continue
commands:
- command: hover-text
text: Password
description: password input field label
action: click
- command: type
text: ${TD_PASSWORD}
- command: hover-text
text: CONTINUE
description: continue button below the password input
action: click
Copy name: TestDriver.ai
permissions:
actions: read
contents: read
statuses: write
pull-requests: write
on:
push:
branches: ["main"]
pull_request:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: "TestDriver"
runs-on: ubuntu-latest
steps:
- name: Run TestDriver.ai Action
uses: testdriverai/action@main
with:
key: ${{ secrets.TESTDRIVER_API_KEY }}
prompt: |
1. /run testdriver/test.yml
prerun: |
cd $env:TEMP
npm init -y
npm install dashcam-chrome
Start-Process "C:/Program Files/Google/Chrome/Application/chrome.exe" -ArgumentList "--start-maximized", "--load-extension=$(pwd)/node_modules/dashcam-chrome/build", "${{ env.WEBSITE_URL }}"
exit
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FORCE_COLOR: "3"
WEBSITE_URL: "example.com"
TD_USERNAME: ${{ secrets.TD_USERNAME }}
TD_PASSWORD: ${{ secrets.TD_PASSWORD }}