0
0
Selenium Pythontesting~10 mins

GitHub Actions integration in Selenium Python - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the name of the GitHub Actions workflow.

Selenium Python
name: [1]
Drag options to blanks, or click blank then click option'
ATest Workflow
BCI Pipeline
CBuild Process
DDeploy Script
Attempts:
3 left
💡 Hint
Common Mistakes
Using generic names that don't describe the workflow purpose.
2fill in blank
medium

Complete the code to specify the event that triggers the workflow on every push.

Selenium Python
on:
  [1]:
    branches:
      - main
Drag options to blanks, or click blank then click option'
Apush
Bworkflow_dispatch
Cpull_request
Dschedule
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing pull_request which triggers on PRs, not pushes.
3fill in blank
hard

Fix the error in the job definition by completing the runner specification.

Selenium Python
jobs:
  test:
    runs-on: [1]
Drag options to blanks, or click blank then click option'
Awindows-latest
Bdebian-latest
Cmacos-latest
Dubuntu-latest
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing unsupported or less common runners that may lack necessary tools.
4fill in blank
hard

Fill both blanks to install Python and Selenium in the workflow steps.

Selenium Python
steps:
  - uses: actions/checkout@v3
  - name: Set up Python
    uses: [1]@v4
    with:
      python-version: '3.12'
  - name: Install dependencies
    run: |
      python -m pip install --upgrade pip
      pip install [2]
Drag options to blanks, or click blank then click option'
Aactions/setup-python
Bselenium
Cpytest
Drequests
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong action names or installing unrelated packages.
5fill in blank
hard

Fill all three blanks to run the Selenium test script with Python in the workflow.

Selenium Python
  - name: Run tests
    run: |
      python [1]/[2].py --browser [3]
Drag options to blanks, or click blank then click option'
Atests
Btest_selenium
Cchrome
Dfirefox
Attempts:
3 left
💡 Hint
Common Mistakes
Wrong folder or script names, or unsupported browser names.