|
所在平台: Udemy |
课程主页: https://www.udemy.com/course/learn-by-example-selenium/
课程评论:没有评论
课程名称:通过实例学习:Selenium 自动化网页测试 课程概述: Selenium 是一个专门的、易于使用的框架,旨在自动化与网页浏览器的交互,无论是为了测试您开发的网页应用程序的功能,还是为了自动化无聊和重复的任务,或进行网页抓取。在本课程中,我们将使用 Selenium 的 Java API 来测试浏览器功能,并通过近 45 个具体的案例来自动化任务。这些案例涵盖了一些您可能经常遇到的场景,例如: 1. 根据 HTML 标签和 CSS 选择器抓取网页中的特定元素。 2. 测试各种用户交互,例如点击、输入文本、拖放和从下拉菜单中选择。 3. 自动化浏览器导航和处理 Cookie。 4. 在主浏览器窗口与弹出提示、嵌入的 iframe 之间切换。 5. 与基于 HTML5 的元素(如视频播放器)进行交互。 6. 使用 Selenium Grid 从本地机器并行运行多个浏览器和平台上的测试。 虽然 Selenium 简化了上述任务的自动化,但随着任务的复杂性增加,您将需要采用最佳实践来组织代码。课程中还会介绍页面对象模型(Page Object Model)设计模式,以及如何使用它来设计易于维护的测试脚本。
Selenium is a specialized, easy-to-use framework for automating interactions with web browsers, whether it's to test the functionality of web apps that you've developed or to automate boring and repetitive tasks or to perform activities like scraping websites. In this course, we'll be working with Selenium's Java API to test browser functionality and automate tasks using nearly 45 solved examples of use cases you might encounter on a regular basis. We'll look at scenarios like 1) scraping websites for specific elements identified by HTML tags, CSS selectors2) Testing User interactions of all kinds as click, entering text, drag and drop, selecting from dropdowns3) Automating Browser Navigation and Handling cookies4) Switching between your main browser window and pop-up alerts, embedded iframes5) Interacting with HTML5 based elements like video players6) and Parallelly running tests across multiple browsers and platforms from your local machine using Selenium GridSelenium makes automating all the tasks we've mentioned very straightforward but as your tasks get more and more sophisticated you'll want to use best practices to structure your code. We'll talk about the Page Object Model design pattern and how you can use it to design testing scripts that are easy to maintain.