Codekru

get_attribute vs get_property vs get_dom_attribute

You might have noticed a few Selenium methods in Python that seem quite similar: get_attribute, get_property, and get_dom_attribute. So, which one should you use, and what’s the difference between them? Each of these methods works a little differently, and the best choice depends on what you’re trying to do. Let’s break it down! So, which […]

get_attribute vs get_property vs get_dom_attribute Read More »

get_dom_attribute() method in Selenium Python

When working with Selenium for web automation, one of the most common tasks is extracting attributes from HTML elements. Selenium provides multiple ways to retrieve attributes, and one of the lesser-known but powerful methods is get_dom_attribute(). Attributes provide extra information about elements, and every tag can have certain attributes that describe it in more detail.

get_dom_attribute() method in Selenium Python Read More »

get_property() method in Selenium Python

Selenium has been the go-to tool for web automation for years, but even experienced testers sometimes get confused about when to use get_property() versus get_attribute(). If you’ve ever struggled with retrieving dynamic properties from web elements, get_property() is the method you need to understand, whereas we have covered get_attribute() in a different post. This post

get_property() method in Selenium Python Read More »

How to retry the failed test cases in PyTest?

When working with automated testing in Python, PyTest is one of the most popular and powerful testing frameworks. However, in real-world scenarios, tests can sometimes fail due to transient issues—network latency, database unavailability, or even slight timing mismatches. Manually rerunning failed test cases is time-consuming and inefficient. Fortunately, PyTest provides built-in capabilities to automatically rerun

How to retry the failed test cases in PyTest? Read More »

How to setup Appium with the andrioid/ios simulators on Mac

In today’s fast-moving world of mobile app development, ensuring your app runs smoothly across different devices is more important than ever. Appium, a powerful open-source automation framework, makes this easier by allowing developers and testers to automate applications on both Android and iOS using a single codebase. Unlike platform-specific testing tools, Appium supports multiple programming

How to setup Appium with the andrioid/ios simulators on Mac Read More »

How to generate random strings or number in Jmeter

When performing load testing in JMeter, generating random strings or numbers is crucial for simulating real-world scenarios. Whether you need dynamic user credentials, unique request parameters, or randomized data to prevent caching issues. This article will explore different methods to generate random strings and numbers in JMeter. So, let’s look at all the ways one

How to generate random strings or number in Jmeter Read More »