![]() A Dockerfile is a text document that contains all the commands a user could execute on the command line to assemble an image. ![]() We have created a Dockerfile and build different images using this Dockerfile for different versions of Chrome and Firefox. In the following sections, we will be briefing you about how we created different containers for different browser versions and how we ran our Python-Selenium tests. So the best way to tackle this to create different Docker images/containers for different browser versions and run your scripts in each container. We can’t (easily) maintain multiple versions of the same browser in a single system. Just run the executable and extract the files to any folder on your hard drive. They have cached old versions of Chrome for Windows, Linux and Mac. You can get older versions of Chrome using Slimjet. There are some decent third party sites providing old versions. So, we will have to rely on third-party sources for getting archived versions. ![]() There is no official way to download Google Chrome older versions. Unlike Mozilla, Google seems to keep very quiet about versions, it does not keep an archive version so the old versions are gone forever as soon as a newer version becomes available. We started exploring, where to get the official downloads of older stable browser(Chrome/Firefox) versions for Windows, Linux and Mac. Creating a container and running Selenium testsġ.Third party sources for getting archived versions of browsers ![]() Building your own images using this Dockerfileĥ. Why we chose to create Docker images/containers for different versions of browsers?Ĥ. Third party sources for getting archived versions of browsersĢ. ![]() In the following sections we will be talking about below items:ġ. This post assumes you already know a little about Docker and Dockerfile. But in case if you want to build your own environment which is easy to control and maintain, you can create your own docker images/containers for different browser versions as and when you need. One approach is to use cloud solutions like Sauce Labs or BrowserStack which provides multi-version-browser support. It’s tough to maintain environments with different versions of browsers. When any application is deployed the software needs to be tested across multiple platforms and different versions of browsers. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |