From the course: Advanced Selenium: Page Objects and GUI Automation
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Dependency abstractions
From the course: Advanced Selenium: Page Objects and GUI Automation
Dependency abstractions
- [Instructor] Our automated execution code is dependent on many libraries, and the external application is like drivers. So how do we abstract that to make it easier to maintain and work with? Well dependency management tools like Maven which use the pom.xml file can help and we add libraries like WebDriverManager into here as dependencies and they download the dependencies for us so that they are available for our code to work. So now we'll have a quick look at how this works and discuss the pros and cons. So if I get the pom.xml file working here, we can see that the pom.xml file is a way of declaring the dependencies required for the project. Now there are many tools that do this, now whatever language we work with it's useful to have an easy to configure dependency management system. This cuts down on the setup requirements for projects and also reduces the size of the version control repositories. So we can see…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.