Element Locators in Selenium WebDriver
WebDriver API Structure
WebDriver provides a comprehensive class library with two core functions:
Element discovery
Element manipulation
Installation Commands
pip install selenium==3.14.0
pip uninstall selenium
pip show selenium
Automation Testing Workflow
Import required packages
Instantiate browser driver
Navigate to target application
Lo ...
Posted on Fri, 07 Aug 2026 16:55:10 +0000 by HFD
Python Web Scraping: Three Data Parsing Methods
Data Scraping Workflow Review
The standard process for scraping data with requests:
Specify target URL
Make request via requests module
Extract data from response object
Data parsing (critical step for focused crawlers)
Persist to storage
Most practical scenarios require focused crawlers that extract specific portions of page data rather than ...
Posted on Wed, 05 Aug 2026 16:40:51 +0000 by dineshsjce
Appium Element Location Strategies for Mobile Automation Testing
Tool Overview for Element Detection
Appium provides several built-in tools for element identification:
Appium Inspector: Built-in component for element detection
UI Automator: Android SDK's native tool for element analysis
Core Concept of Element Location
Element location represents a critical component in mobile automation testing, similar t ...
Posted on Wed, 29 Jul 2026 17:03:57 +0000 by Jeroen Oosterlaar
XML Parsing with Python's lxml Library: XPath Queries for Elements, Attributes, and Text Content
Introduction to XML Parsing with lxml
The lxml library in Python provides powerful tools for parsing XML documents and performing XPath queries. This tutorial demonstrates how to navigate XML structures, access elements, attributes, and text content using XPath expressions.
Sample XML Document
Consider the following XML structure which we'll us ...
Posted on Fri, 10 Jul 2026 16:16:25 +0000 by derrick24
Understanding XSLT 2.0 xsl:key and key() Function for Efficient Node Lookup
In XSLT, the id() function can be used to locate nodes, but it has certain limitations. For instance, ID-type values cannot be pure numbers, and their values must conform to XML naming rules.
This limitation can be inconvenient in specific scenarios, such as locating books by ISBN numbers, wich are pure numeric identifiers and don't fit the ID ...
Posted on Sun, 28 Jun 2026 16:47:38 +0000 by redrage
Scrapy Framework Setup and XPath Querying Techniques
Core Framwork Architecture
Scrapy operates as an asynchronous web scraping framework built upon Twisted. The main components coordinating data flow are:
Engine: Orchestrates triggers and overall data handling.
Scheduler: Accepts requests, maintains a priority queue, and deduplicates URLs.
Downloader: Retrieves page content via non-blocking I/O ...
Posted on Mon, 15 Jun 2026 17:21:19 +0000 by Buffas
Web Scraping with XPath: Extracting News Headlines from 36Kr
Having previously explored the powerful BeautifulSoup library for HTML parsing and techniques for capturing HTTP requests through on line tools, we now turn our attention to another fundamental web scraping approach: XPath. XPath serves as a query language designed to navigate and select specific portions of XML documents. While originally deve ...
Posted on Fri, 12 Jun 2026 18:32:30 +0000 by 9mm
Mobile App Element Interaction Methods in UI Automation
Click action: element.click()
Text input: element.send_keys("text_value")
Value setting: element.set_value("new_value")
Clear content: element.clear()
Visibility check: element.is_displayed() returns boolean
Enabled status: element.is_enabled() returns boolean
Selection state: element.is_selected() returns boolean
Attribute ...
Posted on Wed, 10 Jun 2026 16:22:19 +0000 by bbaker
Applying XPath Expressions with Python's lxml Library
Installation
Install the library using pip:
pip install lxml
XPath Core Concepts
Node Types
XPath defines seven node types: element, attribute, text, namespace, processing instruction, comment, and the document (root) node. An XML document is represented as a node tree, with the root of the tree being the document or root node.
Consider this s ...
Posted on Wed, 20 May 2026 18:13:14 +0000 by alego
Introduction to the Scrapy Framework for Web Scraping
This article explores the fundamentals of web scraping using Python, covering aspects from basic browser automation to the powerful Scrapy framework.
Web Scraping with Selenium
Selenium is a popular tool for browser automation, enabling the simulation of user interactions with web pages. The following example demonstrates how to use Selenium wi ...
Posted on Sun, 17 May 2026 23:33:31 +0000 by strago