SeleniumLab

CoursePractical Lab assessments → Practical — Selenium on HelpDesk

Practical Lab assessments

UI automation checkpoint

25 min · Module 1

You already know Python. This checkpoint tests whether you can design and reason about Selenium against HelpDesk, not basic syntax.

Open the Lab, log in, create a ticket, update status, and search. Then take the quiz.

Example / notes

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC

driver = webdriver.Chrome()
driver.get("http://127.0.0.1:8000/lab/login/")
driver.find_element(By.ID, "username").send_keys("demo")
driver.find_element(By.ID, "password").send_keys("demo1234")
driver.find_element(By.ID, "login-button").click()
assert "/lab/welcome/" in driver.current_url
driver.get("http://127.0.0.1:8000/lab/app/tickets/new/")
driver.find_element(By.ID, "subject").send_keys("vpn-outage")
driver.find_element(By.ID, "description").send_keys("users cannot connect")
driver.find_element(By.ID, "priority").send_keys("high")  # or Select(...)
driver.find_element(By.ID, "submit-ticket").click()
WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "ticket-subject")))
driver.quit()

Practice in Lab: /lab/app/

Log in to track progress / take quizzes
Modules in this track