# robotframework-seleniumwire **Repository Path**: orion-c/robotframework-seleniumwire ## Basic Information - **Project Name**: robotframework-seleniumwire - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-05-03 - **Last Updated**: 2025-05-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # robotframework-seleniumwire Wrapper of [python selenium-wire](https://github.com/wkeeling/selenium-wire) to capture browser network using robotframework ![PyPI version](https://badge.fury.io/py/robotframework-seleniumwire.svg) [![Downloads](https://pepy.tech/badge/robotframework-seleniumwire)](https://pepy.tech/project/robotframework-seleniumwire) ![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square) ![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg) ## Installation To install robotframework-seleniumwire ``` $ pip install robotframework-seleniumwire==0.1.1 ``` Keyword documentation [link](https://robotframework-seleniumwire.netlify.app/) ## Usage: ``` *** Settings *** Library SeleniumWireLibrary *** Variables *** &{options} ... disable_encoding=${True} ... enable_har=${True} ... exclude_hosts=['google-analytics.com', 'cdn.sstatic.net'] @{scopes} .*stackoverflow.* *** Test Cases *** Network Logs Check # launch selenium-wire chrome browser Open Browser ${options} # set domains to be captured Set Request Scope ${scopes} # navigate to stackoverflow questions page Go To https://stackoverflow.com/questions # get and log all stackoverflow requests ${stack_requests}= Get All Requests Log ${stack_requests} ${questions_request}= Get Request By Name /questions request Log ${questions_request} # clear stack requests Clear Requests # enter some random text Wait Until Page Contains Element name:q Input Text name:q Robotframework Sleep 3s # click on about Wait Until Element Is Visible link text:About Click Element link text:About Wait Until Page Contains Element xpath://a[text()='Leadership'] Wait For Request /company ${about_requests}= Get All Requests Log ${about_requests} &{request}= Get Request By Name /company request Log ${request.Method} Log ${request.Response} HAR Archive ${EXECDIR}/stackoverflow.har [Teardown] Close All Browsers ``` --- :star: repo if you like it ---