Categories
Automated testing Python Selenium WebDriver

Waits – simple way to find all the desired elements

Each test run takes place under different conditions. The connection speed is always different. The site may or may not be under load. Even the computer that run tests may, for some reason, run slower than usual. Any of these circumstances can cause tests to fail due to lack of the elements immediately after opening…

Categories
Automated testing Python Selenium WebDriver

How to use now all the WebElements you found

You found elements on the page that you need to test. Now you need to click one element and check the text of the other. Or maybe you need to check whether the element enabled or clickable. If you don’t know how to find elements of the page read my post about that: Locate web…

Categories
Automated testing Python Selenium WebDriver

Locate web elements on the sites easily

In this post I’ll describe how to find elements on the page of the site you are testing. If you need to know how to start working with Selenium WebDriver, read my post where I tell about the initial configuration of Selenium WebDriver with Python. Elements in HTML All the elements on any web page…

Categories
Automated testing Python Selenium WebDriver

Selenium WebDriver with Python – initial configuration

So, you want to start working with Selenium WebDriver with Python. In this post I will tell you what you need to do at the very beginning. Install Selenium WebDriver In order to be able to call WebDriver methods and classes from your python code you need to install selenium module You can install the…

Categories
Automated testing Pytest Python

Build test suite with pytest

Pytest is a framework for running tests written in Python. It is easy to customize the launch of the tests. Let’s see what Pytest has to make it possible. possibility to create you own fixtures built-in fixtures tests parametrization for running same tests with different test data third-party plugins allow you to extend your tests…

Categories
Automated testing Python

Python virtual environment with venv

Venv is a python package that allows you to use separate virtual environments for every python project you have. Once activated, it modifies the PATH environment variable with a custom bin directory that is located inside you virtual environment. Why do you need a virtual environment If you work with more than one python project…

Categories
Automated testing Pytest

Run pytest tests with report publication on GitLab

Configure GitLab CI to run automated tests written on python using pytest framework and to publish allure test results to GitLab pages

Categories
Penetration testing

Resolve missing vboxdrv driver

I needed to install Virtual Box on Kali Linux for training purposes. It provides a possibility to create pentesting labs. But I faced a problem that a virtual machine didn’t want to start and complained about missing vboxdrv. Here I will describe the way how to resolve missing vboxdrv on Kali Linux by installing linux-headers.…

Categories
Automated testing

Gitlab CI – download job artifacts from a private repository

To configure a pipeline in the Gitlab CI you sometimes need to download artifacts from another job. It is not difficult and you can easily find the documentation that describes how to do it. It is here: https://docs.gitlab.com/ee/api/job_artifacts.htmlIn the document you can see two basic ways to do that: using PRIVATE-TOKEN using JOB-TOKEN As you…

Categories
Network

Network models

The models are used to describe how data moves around a network. There are two network models: OSI and TCP/IP. The OSI model was created at a time when networks were not widely used. And the TCP/IP is a modern network model. However, the OSI model is still in use by the network guys to…