
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
robotframework-browsermobproxylibrary
Advanced tools
BrowserMobProxyLibrary is a Robot Framework library ro interface with BrowserMob Proxy.
BrowserMob Proxy is a simple utility to capture performance data for web apps (via the HAR format), as well as manipulate browser behavior and traffic, such as whitelisting and blacklisting content, simulating network traffic and latency, and rewriting HTTP requests and responses.
More information about this library can be found in the Keyword Documentation.
pip install -U robotframework-browsermobproxylibrary
*.tar.gz
) for the library and its dependencies:
python setup.py install
Robot Framework keyword documentation is located Here
Install Robot Framework library for selenium
pip install -U robotframework-selenium2library
Download and extract BrowserMob Proxy
Basic example:
*** Settings ***
Documentation This is just a BrowserMob Proxy Library tutorial
...
Metadata VERSION 0.1
Library Selenium2Library
Library Collections
Library OperatingSystem
Library BrowserMobProxyLibrary
Suite Setup Start Browser
Suite Teardown Close Browsers
*** Variables ***
${PAGE_URL} https://www.google.com
${BROWSER} Firefox
*** Keywords ***
Start Browser
[Documentation] Start firefox browser
Set Selenium Implicit Wait 10
## Init BrowserMob Proxy
Start Local Server <path to browsermob-proxy>
## Create dedicated proxy on BrowserMob Proxy
${BrowserMob_Proxy}= Create Proxy
## Configure Webdriver to use BrowserMob Proxy
Create Webdriver ${BROWSER} proxy=${BrowserMob_Proxy}
Close Browsers
Close All Browsers
Stop Local Server
*** Test Cases ***
Check something
[Documentation] Check the page title
New Har google
Go to ${PAGE_URL}
Title Should Be Google
${har}= Get Har As JSON
create file ${EXECDIR}${/}file.har ${har}
log to console Browsermob Proxy HAR file saved as ${EXECDIR}${/}file.har
FAQs
BrowserMob Proxy library for Robot Framework
We found that robotframework-browsermobproxylibrary demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.