Some time ago I came across a new, unusual feature of Selenium. After running the tests with Python, the browser closes on its own, even though the driver.quit() command is missing. This new feature is hard to notice when you’re maintaining an old project. When creating a new project, you may decide to leave the…
Author: Eugene Okulik
Follow me on twitter
This is a common mistake that can be found in unexpected places. Usually, you meet it like this: you find all the elements you need and save them into variables. Then, you start using the items you have saved. Some of them you click, in some you enter text. And now, at some point, when…
In the past, before you could start using Selenium, you had to install drivers to interact with browsers. In order to be able to give commands to the browser, you had to install chromedriver or edgedriver or geckodriver, depending on which browser you intended to test on. Otherwise, you received an error with the text…
Finding an element by its class name is an efficient yet convenient way to find many elements on a page. Despite its simplicity, many beginners make mistakes when using it. It may look like you’re doing everything right, but the NoSuchElementException error tells you that you’re doing something wrong. By.CLASS_NAME locator strategy To begin with,…
Pytest fixtures are a very handy tool. Thanks to them, we avoid having to repeat the same code. Also, pytest allows you to control for which tests a fixture should be run. There is no problem as long as you want the fixture to always give you the same result. But what if each test…
Usually, finding elements on a page with Python and Selenium is not too difficult. To do this, you just need to choose the right locator. But there are pages where even the simplest search for an element can return an error. One of the reasons for these problems are pages with lazy loading. Lazy loading…
In this post, I will talk about what you need to pay attention to after migrating your application to an infrastructure managed by Kubernetes. Here I will list the main steps to follow no matter what your application is about. Your team may insist that no testing is required. After all, Kubernetes is designed to…
When you’re testing a new feature, it’s quite common for the back end and front end to come into testing stage at different times. If testing the back end without a front end is a fairly easy task, then testing the front end without a back end can be challenging. You need to find a…
Testers often use checklists. Each team has a different approach to how and why to use the it. Some people think that testing is impossible without a checklist or test cases, while others think that we don’t need it at all. Let’s see what approach I use. What is a checklist? First of all, let’s…
Testing a GIS platform is first and foremost data testing. One day you will need to check the data that is displayed on the map. I will try to explain how the data gets on the map without going deep into technical details. What do I mean by the data on the maps. Let’s take…