Video playback automation of a demo website using Python Selenium
Task:
- Go to demo.castlabs.com
- Play 'HLS - HLS Clear' by clicking on the stream.
- The browser opens with the details of the video.
- Seek to 70% of the video duration.
- Validate the “Player state change” in the console logs.
- Click the options button (three dots), click 'Videos'.
- Select any video value eg: '960x540 @ 2.48 Mbps' and Validate the selection
Prerequisite:
Following language, tool, browser, webdriver should be installed & running on your local system
- Python3
- IDE like PyCharm or VS-Code
- Browser like Chrome, Firefox, Edge, Safari etc
- Webdriver (After downlaoding Webdriver, either keep it in the path varaibles of your local system or in the root directory where the script is)
Steps:
- Clone the above reop by running below command:
git clone https://github.com/divanshu-netizen/browser_automation.git
- Open a terminal or Command promt and run below command:
pip install selenium
- Run the script in the terminal or cmd:
py castLabsDemotest.py
websites: